Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Conf ¶
type Conf struct { Name string LogLevel string Loopback string ASN uint32 Ports Ports MetalCoreCIDR string AdditionalBridgeVIDs []string PXEVlanID uint16 AdditionalRouteMapCIDRs []string }
Conf holds the switch configuration
func (*Conf) CapitalizeVrfName ¶ added in v0.9.0
func (c *Conf) CapitalizeVrfName()
CapitalizeVrfName capitalizes VRF names, which is requirement for SONiC
func (*Conf) FillRouteMapsAndIPPrefixLists ¶
func (*Conf) FillVLANIDs ¶
FillVLANIDs fills the given configuration object with switch-local VLAN IDs if they are present in the given VLAN-Mapping otherwise: new available VLAN IDs will be used
func (*Conf) NewWithoutDownPorts ¶ added in v0.11.0
type Filter ¶
type Filter struct { IPPrefixLists []IPPrefixList RouteMaps []RouteMap }
type IPPrefixList ¶
IPPrefixList represents 'ip prefix-list' filtering mechanism to be used in combination with route-maps.
Click to show internal directories.
Click to hide internal directories.