mirror of
https://github.com/luscis/openlan.git
synced 2025-12-24 11:10:54 +08:00
21 lines
237 B
Go
21 lines
237 B
Go
//go:build !linux
|
|
|
|
package network
|
|
|
|
type VRF struct {
|
|
name string
|
|
table int
|
|
}
|
|
|
|
func NewVRF(name string, table int) *VRF {
|
|
return &VRF{}
|
|
}
|
|
|
|
func (v *VRF) Table() int {
|
|
return v.table
|
|
}
|
|
|
|
func (v *VRF) Name() string {
|
|
return v.name
|
|
}
|