nodeitfceselector

package
v0.0.23 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GlobalParameters added in v0.0.23

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
	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 added in v0.0.23

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 added in v0.0.23

func WithItfceIndex(s string) ItfceInfoOption

func WithItfceName

func WithItfceName(s string) ItfceInfoOption

func WithItfceSelectorTags

func WithItfceSelectorTags(s []*nddov1.Tag) ItfceInfoOption

func WithNiKind added in v0.0.23

func WithNiKind(s string) ItfceInfoOption

func WithNiName added in v0.0.23

func WithNiName(s string) ItfceInfoOption

func WithNodeName added in v0.0.23

func WithNodeName(s string) ItfceInfoOption

func WithRegister added in v0.0.23

func WithRegister(s map[string]string) ItfceInfoOption

func WithResourceClient added in v0.0.23

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)
	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