device

package
v0.0.0-...-4287dc4 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IRBInterfaceName    = "irb0"
	SystemInterfaceName = "system0"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Device

type Device struct {
	*ygotsrl.Device
}

func (Device) AddBridgeDomain

func (d Device) AddBridgeDomain(nodeName, selectorName, bdName string)

create a BridgeDomain (bdName + "-" + selectorName) create BD Index (hash)

func (Device) AddBridgedInterface

func (d Device) AddBridgedInterface(niName, ifName string, index int, attachmentType reqv1alpha1.AttachmentType)

AddBridgedInterface adds a bridge interface to the device config index is the vlan ID or 0 for untagged bridge interfaces

func (*Device) AddRoutedInterface

func (d *Device) AddRoutedInterface(niName, ifName string, index int, attachmentType reqv1alpha1.AttachmentType, prefixes iputil.PrefixClaims)

AddRouteInterface adds a bridge interface to the device config index is the vlan ID or 0 for untagged bridge interfaces

func (Device) AddRoutingInstance

func (d Device) AddRoutingInstance(nodeName, selectorName, rtName string)

func (Device) AddRoutingPolicy

func (d Device) AddRoutingPolicy(prefixes []ipamv1alpha1.Prefix) error

func (Device) AddRoutingProtocols

func (d Device) AddRoutingProtocols(niName string)

Jump to

Keyboard shortcuts

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