Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler interface {
WithLogger(log logging.Logger)
WithClient(client.Client)
GetSelectedNodeItfces(mg resource.Managed, epgSelectors []*nddov1.EpgInfo, nodeItfceSelectors map[string]*nddov1.ItfceInfo) (map[string][]ItfceInfo, error)
GetIrbNodeItfces(mg resource.Managed, s schema.Schema, niName string) (map[string][]ItfceInfo, error)
GetSelectedNodeItfcesVxlan(mg resource.Managed, s schema.Schema, niName string) (map[string][]ItfceInfo, error)
}
type ItfceInfo ¶
type ItfceInfo interface {
//GetEpgName() string
//GetNiName() string
//GetNiKind() string
GetItfceName() string
GetItfceIndex() uint32
//GetNodeName() string
GetVlanId() uint32
GetIpv4Prefixes() []*string
GetIpv6Prefixes() []*string
//GetItfceSelectorKind() nddov1.InterfaceSelectorKind
//GetItfceSelectorTags() []*nddov1.Tag
//GetBridgeDomainName() string
//GetGlobalParamaters() GlobalParameters
//SetEpgName(string)
//SetNiName(string)
//SetNiKind(string)
SetItfceName(string)
SetItfceIndex(uint32)
//SetNodeName(string)
SetVlanId(s uint32)
SetIpv4Prefixes([]*string)
SetIpv6Prefixes([]*string)
}
func NewItfceInfo ¶
func NewItfceInfo(opts ...ItfceInfoOption) ItfceInfo
type ItfceInfoOption ¶
type ItfceInfoOption func(*itfceInfo)
func WithIpv4Prefixes ¶
func WithIpv4Prefixes(s []*string) ItfceInfoOption
func WithIpv6Prefixes ¶
func WithIpv6Prefixes(s []*string) ItfceInfoOption
func WithItfceIndex ¶
func WithItfceIndex(s uint32) ItfceInfoOption
func WithItfceName ¶
func WithItfceName(s string) ItfceInfoOption
func WithVlan ¶
func WithVlan(s uint32) ItfceInfoOption
type NodeItfceSelection ¶
type NodeItfceSelection interface {
GetSelectedNodeItfces() map[string][]ItfceInfo
GetNodeItfcesByEpgSelector([]*nddov1.EpgInfo, networkv1alpha1.IfList)
GetNodeItfcesByNodeItfceSelector(map[string]*nddov1.ItfceInfo, networkv1alpha1.IfList)
GetVxlanNodeItfces(string, schema.Schema, networkv1alpha1.IfList)
GetIrbNodeItfces(string, schema.Schema, networkv1alpha1.IfList)
}
func NewNodeItfceSelection ¶
func NewNodeItfceSelection() NodeItfceSelection
Click to show internal directories.
Click to hide internal directories.