Documentation
¶
Index ¶
Constants ¶
View Source
const (
SkipVrfTemplateVni = -1
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseConfig ¶
type BaseConfig struct { VTEPLoopbackIP string `yaml:"vtepLoopbackIP"` TrunkInterfaceName string `yaml:"trunkInterfaceName"` ExportCIDRs []string `yaml:"exportCIDRs"` ManagementVRF BaseVRF `yaml:"managementVRF"` ClusterVRF BaseVRF `yaml:"clusterVRF"` LocalASN int `yaml:"localASN"` UnderlayNeighbors []Neighbor `yaml:"underlayNeighbors"` ClusterNeighbors []Neighbor `yaml:"clusterNeighbors"` }
func LoadBaseConfig ¶
func LoadBaseConfig(path string) (*BaseConfig, error)
type Config ¶
type Config struct { VRFToVNI map[string]int `yaml:"vnimap"` VRFConfig map[string]VRFConfig `yaml:"vrfConfig"` }
func LoadConfig ¶
func (*Config) ReloadConfig ¶ added in v0.2.0
type Neighbor ¶
type Neighbor struct { IP *string `yaml:"ip"` Interface *string `yaml:"interface"` UpdateSource *string `yaml:"updateSource"` RemoteASN string `yaml:"remoteASN"` LocalASN *string `yaml:"localASN"` KeepaliveTime int `yaml:"keepaliveTime"` HoldTime int `yaml:"holdTime"` BFDMinTimer *int `yaml:"bfdMinTimer"` IPv4 bool `yaml:"ipv4"` IPv6 bool `yaml:"ipv6"` EVPN bool `yaml:"evpn"` }
Click to show internal directories.
Click to hide internal directories.