niselector

package
v0.0.58 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 7, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

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
	GetBridgeDomainName() string
	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)
	SetBridgeDomainName(string)
	IsEpgBased() bool
}

func NewItfceInfo

func NewItfceInfo(opts ...ItfceInfoOption) ItfceInfo

type ItfceInfoOption

type ItfceInfoOption func(*itfceInfo)

func WithBridgeDomainName added in v0.0.32

func WithBridgeDomainName(s string) 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 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 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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL