devbuilder

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	VXLANInterfaceName       = "vxlan0"
	IRBInterfaceName         = "irb0"
	SystemInterfaceName      = "system0"
	BGPUnderlayPeerGroupName = "underlay"
	BGPOverlayPeerGroupName  = "overlay"
	DefaultIGPINstance       = "i1"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DeviceBuilder

type DeviceBuilder struct {
	client.Client
	// contains filtered or unexported fields
}

func New

func (*DeviceBuilder) Build

func (*DeviceBuilder) GetNetworkDeviceConfigs

func (r *DeviceBuilder) GetNetworkDeviceConfigs() []*netwv1alpha1.NetworkDevice

func (*DeviceBuilder) GetNodes

func (*DeviceBuilder) UpdateInterfaces

func (r *DeviceBuilder) UpdateInterfaces(ctx context.Context, niName string, nd *netwv1alpha1.NetworkDesign, links []*infrabev1alpha1.Link) error

func (*DeviceBuilder) UpdateNetworkInstance

func (r *DeviceBuilder) UpdateNetworkInstance(ctx context.Context, nodeName, niName string, t netwv1alpha1.NetworkInstanceType)

func (*DeviceBuilder) UpdateNodeAS

func (r *DeviceBuilder) UpdateNodeAS(ctx context.Context, nodeName, niName string, nd *netwv1alpha1.NetworkDesign) error

func (*DeviceBuilder) UpdateNodeIP

func (r *DeviceBuilder) UpdateNodeIP(ctx context.Context, nodeName, niName string, nd *netwv1alpha1.NetworkDesign) error

func (*DeviceBuilder) UpdateProtocolsDynamicNeighbors

func (r *DeviceBuilder) UpdateProtocolsDynamicNeighbors(ctx context.Context, nodeName, networkName string, nd *netwv1alpha1.NetworkDesign, nodeLabels map[string]string) error

func (*DeviceBuilder) UpdateProtocolsEdge

func (r *DeviceBuilder) UpdateProtocolsEdge(ctx context.Context, nodeName, networkName string, nd *netwv1alpha1.NetworkDesign, edgePeers sets.Set[string]) error

func (*DeviceBuilder) UpdateProtocolsRR

func (r *DeviceBuilder) UpdateProtocolsRR(ctx context.Context, nodeName, networkName string, nd *netwv1alpha1.NetworkDesign, edgePeers sets.Set[string]) error

func (*DeviceBuilder) UpdateRoutingPolicies

func (r *DeviceBuilder) UpdateRoutingPolicies(ctx context.Context, nodeName string, isDefaultNetwork bool, nd *netwv1alpha1.NetworkDesign) error

type Devices

type Devices struct {
	// contains filtered or unexported fields
}

func NewDevices

func NewDevices(nsn types.NamespacedName) *Devices

func (*Devices) AddInterface

func (r *Devices) AddInterface(nodeName string, x *netwv1alpha1.NetworkDeviceInterface)

func (*Devices) AddNetworkInstance

func (r *Devices) AddNetworkInstance(nodeName string, newNI *netwv1alpha1.NetworkDeviceNetworkInstance)

func (*Devices) AddNetworkInstanceProtocolsBGPAS added in v0.0.8

func (r *Devices) AddNetworkInstanceProtocolsBGPAS(nodeName, niName string, as uint32)

func (*Devices) AddNetworkInstanceProtocolsBGPAddressFamilies added in v0.0.11

func (r *Devices) AddNetworkInstanceProtocolsBGPAddressFamilies(nodeName, niName string, afs []string)

func (*Devices) AddNetworkInstanceProtocolsBGPEVPN

func (r *Devices) AddNetworkInstanceProtocolsBGPEVPN(nodeName, niName string, x *netwv1alpha1.NetworkDeviceNetworkInstanceProtocolBGPEVPN)

func (*Devices) AddNetworkInstanceProtocolsBGPRouterID added in v0.0.8

func (r *Devices) AddNetworkInstanceProtocolsBGPRouterID(nodeName, niName string, routerID string)

func (*Devices) AddNetworkInstanceProtocolsBGPVPN

func (r *Devices) AddNetworkInstanceProtocolsBGPVPN(nodeName, niName string, x *netwv1alpha1.NetworkDeviceNetworkInstanceProtocolBGPVPN)

func (*Devices) AddNetworkInstanceProtocolsISISInstance added in v0.0.8

func (r *Devices) AddNetworkInstanceProtocolsISISInstance(nodeName, niName string, instance *netwv1alpha1.NetworkDeviceNetworkInstanceProtocolISISInstance)

func (*Devices) AddNetworkInstanceProtocolsISISInstanceInterface added in v0.0.8

func (r *Devices) AddNetworkInstanceProtocolsISISInstanceInterface(nodeName, niName, instanceName string, itfce *netwv1alpha1.NetworkDeviceNetworkInstanceProtocolISISInstanceInterface)

func (*Devices) AddNetworkInstanceProtocolsOSPFInstance added in v0.0.8

func (r *Devices) AddNetworkInstanceProtocolsOSPFInstance(nodeName, niName string, instance *netwv1alpha1.NetworkDeviceNetworkInstanceProtocolOSPFInstance)

func (*Devices) AddNetworkInstanceProtocolsOSPFInstanceArea added in v0.0.8

func (r *Devices) AddNetworkInstanceProtocolsOSPFInstanceArea(nodeName, niName, instanceName string, area *netwv1alpha1.NetworkDeviceNetworkInstanceProtocolOSPFInstanceArea)

func (*Devices) AddNetworkInstanceProtocolsOSPFInstanceAreaInterface added in v0.0.8

func (r *Devices) AddNetworkInstanceProtocolsOSPFInstanceAreaInterface(nodeName, niName, instanceName, area string, itfce *netwv1alpha1.NetworkDeviceNetworkInstanceProtocolOSPFInstanceAreaInterface)

func (*Devices) AddNetworkInstanceSubInterface

func (r *Devices) AddNetworkInstanceSubInterface(nodeName, niName string, niItfce *netwv1alpha1.NetworkDeviceNetworkInstanceInterface)

func (*Devices) AddNetworkInstanceSubInterfaceVXLAN

func (r *Devices) AddNetworkInstanceSubInterfaceVXLAN(nodeName, niName string, vxlanItfce *netwv1alpha1.NetworkDeviceNetworkInstanceInterface)

func (*Devices) AddNetworkInstanceprotocolsBGPDynamicNeighbor added in v0.0.8

func (r *Devices) AddNetworkInstanceprotocolsBGPDynamicNeighbor(nodeName, niName string, new *netwv1alpha1.NetworkDeviceNetworkInstanceProtocolBGPDynamicNeighborsInterface)

func (*Devices) AddNetworkInstanceprotocolsBGPNeighbor added in v0.0.8

func (r *Devices) AddNetworkInstanceprotocolsBGPNeighbor(nodeName, niName string, x *netwv1alpha1.NetworkDeviceNetworkInstanceProtocolBGPNeighbor)

func (*Devices) AddNetworkInstanceprotocolsBGPPeerGroup added in v0.0.11

func (r *Devices) AddNetworkInstanceprotocolsBGPPeerGroup(nodeName, niName string, x *netwv1alpha1.NetworkDeviceNetworkInstanceProtocolBGPPeerGroup)

func (*Devices) AddProvider

func (r *Devices) AddProvider(nodeName, provider string)

func (*Devices) AddRoutingPolicy

func (r *Devices) AddRoutingPolicy(nodeName, policyName string, ipv4, ipv6 []string)

func (*Devices) AddSubInterface

func (r *Devices) AddSubInterface(nodeName, ifName string, x *netwv1alpha1.NetworkDeviceInterfaceSubInterface)

func (*Devices) AddSystemProtocolsBGPVPN

func (r *Devices) AddSystemProtocolsBGPVPN(nodeName string, x *netwv1alpha1.NetworkDeviceSystemProtocolsBGPVPN)

func (*Devices) AddTunnelInterface

func (r *Devices) AddTunnelInterface(nodeName string, x *netwv1alpha1.NetworkDeviceTunnelInterface)

func (*Devices) AddTunnelSubInterface

func (r *Devices) AddTunnelSubInterface(nodeName, ifName string, x *netwv1alpha1.NetworkDeviceTunnelInterfaceSubInterface)

func (*Devices) GetNetworkDeviceConfigs

func (r *Devices) GetNetworkDeviceConfigs() []*netwv1alpha1.NetworkDevice

func (*Devices) GetSystemIP

func (r *Devices) GetSystemIP(nodeName, ifName string, id uint32, ipv4 bool) string

Jump to

Keyboard shortcuts

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