devbuilder

package
v0.0.17 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

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 New(client client.Client, network *netwv1alpha1.Network, networkDesign *netwv1alpha1.NetworkDesign) *DeviceBuilder

func (*DeviceBuilder) Build

func (*DeviceBuilder) BuildNew added in v0.0.16

func (r *DeviceBuilder) BuildNew(ctx context.Context) error

func (*DeviceBuilder) BuildOverlay added in v0.0.16

func (r *DeviceBuilder) BuildOverlay(ctx context.Context) error

func (*DeviceBuilder) BuildUnderlay added in v0.0.16

func (r *DeviceBuilder) BuildUnderlay(ctx context.Context) error
func (r *DeviceBuilder) GetLinks(ctx context.Context) ([]*infrabev1alpha1.Link, error)

func (*DeviceBuilder) GetNetworkDeviceConfigs

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

func (*DeviceBuilder) GetNodes

func (r *DeviceBuilder) GetNodes(ctx context.Context) ([]*infrabev1alpha1.Node, error)

type Devices

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

func NewDevices

func NewDevices(nsn types.NamespacedName) *Devices

func (*Devices) AddBFDInterface added in v0.0.16

func (r *Devices) AddBFDInterface(nodeName string, x *netwv1alpha1.NetworkDeviceBFDInterface)

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