Documentation
¶
Index ¶
- Constants
- type DeviceBuilder
- func (r *DeviceBuilder) Build(ctx context.Context, cr *netwv1alpha1.Network, nd *netwv1alpha1.NetworkDesign) error
- func (r *DeviceBuilder) GetLinks(ctx context.Context, cr *netwv1alpha1.Network) ([]*infrabev1alpha1.Link, error)
- func (r *DeviceBuilder) GetNetworkDeviceConfigs() []*netwv1alpha1.NetworkDevice
- func (r *DeviceBuilder) GetNodes(ctx context.Context, cr *netwv1alpha1.Network) ([]*infrabev1alpha1.Node, error)
- func (r *DeviceBuilder) UpdateInterfaces(ctx context.Context, niName string, nd *netwv1alpha1.NetworkDesign, ...) error
- func (r *DeviceBuilder) UpdateNetworkInstance(ctx context.Context, nodeName, niName string, ...)
- func (r *DeviceBuilder) UpdateNodeAS(ctx context.Context, nodeName, niName string, nd *netwv1alpha1.NetworkDesign) error
- func (r *DeviceBuilder) UpdateNodeIP(ctx context.Context, nodeName, niName string, nd *netwv1alpha1.NetworkDesign) error
- func (r *DeviceBuilder) UpdateProtocolsDynamicNeighbors(ctx context.Context, nodeName, networkName string, ...) error
- func (r *DeviceBuilder) UpdateProtocolsEdge(ctx context.Context, nodeName, networkName string, ...) error
- func (r *DeviceBuilder) UpdateProtocolsRR(ctx context.Context, nodeName, networkName string, ...) error
- func (r *DeviceBuilder) UpdateRoutingPolicies(ctx context.Context, nodeName string, isDefaultNetwork bool, ...) error
- type Devices
- func (r *Devices) AddInterface(nodeName string, x *netwv1alpha1.NetworkDeviceInterface)
- func (r *Devices) AddNetworkInstance(nodeName string, newNI *netwv1alpha1.NetworkDeviceNetworkInstance)
- func (r *Devices) AddNetworkInstanceProtocolsBGPAS(nodeName, niName string, as uint32)
- func (r *Devices) AddNetworkInstanceProtocolsBGPAddressFamilies(nodeName, niName string, afs []string)
- func (r *Devices) AddNetworkInstanceProtocolsBGPEVPN(nodeName, niName string, ...)
- func (r *Devices) AddNetworkInstanceProtocolsBGPRouterID(nodeName, niName string, routerID string)
- func (r *Devices) AddNetworkInstanceProtocolsBGPVPN(nodeName, niName string, ...)
- func (r *Devices) AddNetworkInstanceProtocolsISISInstance(nodeName, niName string, ...)
- func (r *Devices) AddNetworkInstanceProtocolsISISInstanceInterface(nodeName, niName, instanceName string, ...)
- func (r *Devices) AddNetworkInstanceProtocolsOSPFInstance(nodeName, niName string, ...)
- func (r *Devices) AddNetworkInstanceProtocolsOSPFInstanceArea(nodeName, niName, instanceName string, ...)
- func (r *Devices) AddNetworkInstanceProtocolsOSPFInstanceAreaInterface(nodeName, niName, instanceName, area string, ...)
- func (r *Devices) AddNetworkInstanceSubInterface(nodeName, niName string, ...)
- func (r *Devices) AddNetworkInstanceSubInterfaceVXLAN(nodeName, niName string, ...)
- func (r *Devices) AddNetworkInstanceprotocolsBGPDynamicNeighbor(nodeName, niName string, ...)
- func (r *Devices) AddNetworkInstanceprotocolsBGPNeighbor(nodeName, niName string, ...)
- func (r *Devices) AddNetworkInstanceprotocolsBGPPeerGroup(nodeName, niName string, ...)
- func (r *Devices) AddProvider(nodeName, provider string)
- func (r *Devices) AddRoutingPolicy(nodeName, policyName string, ipv4, ipv6 []string)
- func (r *Devices) AddSubInterface(nodeName, ifName string, x *netwv1alpha1.NetworkDeviceInterfaceSubInterface)
- func (r *Devices) AddSystemProtocolsBGPVPN(nodeName string, x *netwv1alpha1.NetworkDeviceSystemProtocolsBGPVPN)
- func (r *Devices) AddTunnelInterface(nodeName string, x *netwv1alpha1.NetworkDeviceTunnelInterface)
- func (r *Devices) AddTunnelSubInterface(nodeName, ifName string, ...)
- func (r *Devices) GetNetworkDeviceConfigs() []*netwv1alpha1.NetworkDevice
- func (r *Devices) GetSystemIP(nodeName, ifName string, id uint32, ipv4 bool) string
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 ¶
func New ¶
func New(client client.Client, nsn types.NamespacedName) *DeviceBuilder
func (*DeviceBuilder) Build ¶
func (r *DeviceBuilder) Build(ctx context.Context, cr *netwv1alpha1.Network, nd *netwv1alpha1.NetworkDesign) error
func (*DeviceBuilder) GetLinks ¶
func (r *DeviceBuilder) GetLinks(ctx context.Context, cr *netwv1alpha1.Network) ([]*infrabev1alpha1.Link, error)
func (*DeviceBuilder) GetNetworkDeviceConfigs ¶
func (r *DeviceBuilder) GetNetworkDeviceConfigs() []*netwv1alpha1.NetworkDevice
func (*DeviceBuilder) GetNodes ¶
func (r *DeviceBuilder) GetNodes(ctx context.Context, cr *netwv1alpha1.Network) ([]*infrabev1alpha1.Node, error)
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 (*Devices) AddNetworkInstanceProtocolsBGPAddressFamilies ¶ added in v0.0.11
func (*Devices) AddNetworkInstanceProtocolsBGPEVPN ¶
func (r *Devices) AddNetworkInstanceProtocolsBGPEVPN(nodeName, niName string, x *netwv1alpha1.NetworkDeviceNetworkInstanceProtocolBGPEVPN)
func (*Devices) AddNetworkInstanceProtocolsBGPRouterID ¶ added in v0.0.8
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 (*Devices) AddRoutingPolicy ¶
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
Click to show internal directories.
Click to hide internal directories.