Documentation ¶
Index ¶
- Variables
- func CheckVLANRangesOverlap(ranges []VLANRange) error
- func DefaultObjectMetadata(obj client.Object)
- func SortVLANRanges(ranges []VLANRange)
- func ValidateObjectMetadata(obj client.Object) error
- type DHCPMode
- type Defaultable
- type FabricConfig
- type FabricMode
- type Object
- type ObjectList
- type Range
- type RedundancyType
- type UserCreds
- type VLANRange
- type Validatable
Constants ¶
This section is empty.
Variables ¶
View Source
var DHCPModes = []DHCPMode{ DHCPModeISC, DHCPModeHedgehog, }
View Source
var FabricModes = []FabricMode{ FabricModeCollapsedCore, FabricModeSpineLeaf, }
View Source
var RedundancyTypes = []RedundancyType{ RedundancyTypeNone, RedundancyTypeMCLAG, RedundancyTypeESLAG, }
Functions ¶
func CheckVLANRangesOverlap ¶
func DefaultObjectMetadata ¶
func SortVLANRanges ¶
func SortVLANRanges(ranges []VLANRange)
func ValidateObjectMetadata ¶
Types ¶
type Defaultable ¶
type Defaultable interface {
Default()
}
type FabricConfig ¶
type FabricConfig struct { ControlVIP string `json:"controlVIP,omitempty"` APIServer string `json:"apiServer,omitempty"` AgentRepo string `json:"agentRepo,omitempty"` AgentRepoCA string `json:"agentRepoCA,omitempty"` VPCIRBVLANRanges []VLANRange `json:"vpcIRBVLANRange,omitempty"` VPCPeeringVLANRanges []VLANRange `json:"vpcPeeringVLANRange,omitempty"` // TODO rename (loopback workaround) VPCPeeringDisabled bool `json:"vpcPeeringDisabled,omitempty"` ReservedSubnets []string `json:"reservedSubnets,omitempty"` Users []UserCreds `json:"users,omitempty"` DHCPMode DHCPMode `json:"dhcpMode,omitempty"` DHCPDConfigMap string `json:"dhcpdConfigMap,omitempty"` DHCPDConfigKey string `json:"dhcpdConfigKey,omitempty"` FabricMode FabricMode `json:"fabricMode,omitempty"` BaseVPCCommunity string `json:"baseVPCCommunity,omitempty"` VPCLoopbackSubnet string `json:"vpcLoopbackSubnet,omitempty"` FabricMTU uint16 `json:"fabricMTU,omitempty"` ServerFacingMTUOffset uint16 `json:"serverFacingMTUOffset,omitempty"` ESLAGMACBase string `json:"eslagMACBase,omitempty"` ESLAGESIPrefix string `json:"eslagESIPrefix,omitempty"` // contains filtered or unexported fields }
func LoadFabricConfig ¶
func LoadFabricConfig(basedir string) (*FabricConfig, error)
func (*FabricConfig) ParsedReservedSubnets ¶
func (cfg *FabricConfig) ParsedReservedSubnets() []*net.IPNet
type FabricMode ¶
type FabricMode string
const ( FabricModeCollapsedCore FabricMode = "collapsed-core" FabricModeSpineLeaf FabricMode = "spine-leaf" )
type Object ¶
type Object interface { client.Object Defaultable Validatable }
type ObjectList ¶ added in v0.34.0
type ObjectList interface { client.ObjectList GetItems() []Object }
type Range ¶
type Range[T comparable] interface { From() T To() T }
type RedundancyType ¶
type RedundancyType string
+kubebuilder:validation:Enum=mclag;eslag RedundancyType is the type of the redundancy group, could be mclag or eslag. It defines how redundancy will be configured and handled on the switch as well as which connection types will be available.
const ( RedundancyTypeNone RedundancyType = "" RedundancyTypeMCLAG RedundancyType = "mclag" RedundancyTypeESLAG RedundancyType = "eslag" )
type VLANRange ¶
func NormalizedVLANRanges ¶
type Validatable ¶
Click to show internal directories.
Click to hide internal directories.