Documentation
¶
Index ¶
- type GlobalParameters
- type ItfceInfo
- type ItfceInfoOption
- func WithAddressAllocationStrategy(s *nddov1.AddressAllocationStrategy) ItfceInfoOption
- func WithEpgName(s string) ItfceInfoOption
- func WithIpv4Prefixes(s []*string) ItfceInfoOption
- func WithIpv6Prefixes(s []*string) ItfceInfoOption
- func WithItfceIndex(s string) ItfceInfoOption
- func WithItfceName(s string) ItfceInfoOption
- func WithItfceSelectorKind(s nddov1.InterfaceSelectorKind) ItfceInfoOption
- func WithItfceSelectorTags(s []*nddov1.Tag) ItfceInfoOption
- func WithNiKind(s string) ItfceInfoOption
- func WithNiName(s string) ItfceInfoOption
- func WithNodeName(s string) ItfceInfoOption
- func WithRegister(s map[string]string) ItfceInfoOption
- func WithResourceClient(s string, c resourcepb.ResourceClient) ItfceInfoOption
- func WithVlan(s uint32) ItfceInfoOption
- type NodeItfceSelection
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GlobalParameters ¶
type GlobalParameters interface {
GetRegister() map[string]string
GetAddressAllocationStrategy() *nddov1.AddressAllocationStrategy
GetResourceClient(s string) resourcepb.ResourceClient
SetRegister(s map[string]string)
SetAddressAllocationStrategy(s *nddov1.AddressAllocationStrategy)
SetResourceClient(s string, c resourcepb.ResourceClient)
}
type ItfceInfo ¶
type ItfceInfo interface {
GetEpgName() string
GetNiName() string
GetNiKind() string
GetItfceName() string
GetItfceIndex() string
GetNodeName() string
GetVlanId() uint32
GetIpv4Prefixes() []*string
GetIpv6Prefixes() []*string
GetItfceSelectorKind() nddov1.InterfaceSelectorKind
GetItfceSelectorTags() []*nddov1.Tag
GetGlobalParamaters() GlobalParameters
SetEpgName(string)
SetNiName(string)
SetNiKind(string)
SetItfceName(string)
SetItfceIndex(string)
SetNodeName(string)
SetVlanId(s uint32)
SetIpv4Prefixes([]*string)
SetIpv6Prefixes([]*string)
SetItfceSelectorKind(nddov1.InterfaceSelectorKind)
SetItfceSelectorTags([]*nddov1.Tag)
IsEpgBased() bool
}
func NewItfceInfo ¶
func NewItfceInfo(opts ...ItfceInfoOption) ItfceInfo
type ItfceInfoOption ¶
type ItfceInfoOption func(*itfceInfo)
func WithAddressAllocationStrategy ¶
func WithAddressAllocationStrategy(s *nddov1.AddressAllocationStrategy) ItfceInfoOption
func WithEpgName ¶
func WithEpgName(s string) ItfceInfoOption
func WithIpv4Prefixes ¶
func WithIpv4Prefixes(s []*string) ItfceInfoOption
func WithIpv6Prefixes ¶
func WithIpv6Prefixes(s []*string) ItfceInfoOption
func WithItfceIndex ¶
func WithItfceIndex(s string) ItfceInfoOption
func WithItfceName ¶
func WithItfceName(s string) ItfceInfoOption
func WithItfceSelectorKind ¶
func WithItfceSelectorKind(s nddov1.InterfaceSelectorKind) ItfceInfoOption
func WithItfceSelectorTags ¶
func WithItfceSelectorTags(s []*nddov1.Tag) ItfceInfoOption
func WithNiKind ¶
func WithNiKind(s string) ItfceInfoOption
func WithNiName ¶
func WithNiName(s string) ItfceInfoOption
func WithNodeName ¶
func WithNodeName(s string) ItfceInfoOption
func WithRegister ¶
func WithRegister(s map[string]string) ItfceInfoOption
func WithResourceClient ¶
func WithResourceClient(s string, c resourcepb.ResourceClient) ItfceInfoOption
func WithVlan ¶
func WithVlan(s uint32) ItfceInfoOption
type NodeItfceSelection ¶
type NodeItfceSelection interface {
GetNodeItfcesByEpgSelector(epgSelectors []*nddov1.EpgInfo, nddaItfceList networkv1alpha1.IfList)
GetNodeItfcesByNodeItfceSelector(nodeItfceSelectors map[string]*nddov1.ItfceInfo, nddaItfceList networkv1alpha1.IfList)
GetIrbNodeItfces(niName string, activeNiNodeAndLinks []ItfceInfo, nddaItfceList networkv1alpha1.IfList, ipv4Prefixes, ipv6Prefixes []*string)
GetVxlanNodeItfces(niName string, activeNiNodeAndLinks []ItfceInfo, nddaItfceList networkv1alpha1.IfList)
GetSelectedNodeItfces() map[string][]ItfceInfo
}
func NewNodeItfceSelection ¶
func NewNodeItfceSelection() NodeItfceSelection
Click to show internal directories.
Click to hide internal directories.