nodeitfceselector

package
v0.0.22 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: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ItfceInfo

type ItfceInfo interface {
	GetEpgName() string
	GetItfceName() string
	GetVlanId() uint32
	GetIpv4Prefixes() []*string
	GetIpv6Prefixes() []*string
	GetItfceSelectorKind() nddov1.InterfaceSelectorKind
	GetItfceSelectorTags() []*nddov1.Tag
	SetEpgName(s string)
	SetItfceName(s string)
	SetVlanId(s uint32)
	SetIpv4Prefixes(s []*string)
	SetIpv6Prefixes(s []*string)
	SetItfceSelectorKind(s nddov1.InterfaceSelectorKind)
	SetItfceSelectorTags(s []*nddov1.Tag)
	IsEpgBased() bool
}

func NewItfceInfo

func NewItfceInfo(opts ...ItfceInfoOption) ItfceInfo

type ItfceInfoOption

type ItfceInfoOption func(*itfceInfo)

func WithEpgName

func WithEpgName(s string) ItfceInfoOption

func WithIpv4Prefixes

func WithIpv4Prefixes(s []*string) ItfceInfoOption

func WithIpv6Prefixes

func WithIpv6Prefixes(s []*string) ItfceInfoOption

func WithItfceName

func WithItfceName(s string) ItfceInfoOption

func WithItfceSelectorTags

func WithItfceSelectorTags(s []*nddov1.Tag) 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