zoneinterconnect

package
v0.0.0-...-9bf6a48 Latest Latest
Warning

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

Go to latest
Published: May 5, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BaseTransitSwitchTunnelKey = 16711683
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ZoneChassisHandler

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

ZoneChassisHandler creates chassis records for the remote zone nodes in the OVN Southbound DB. It also creates the encap records.

func NewZoneChassisHandler

func NewZoneChassisHandler(sbClient libovsdbclient.Client) *ZoneChassisHandler

NewZoneChassisHandler returns a new ZoneChassisHandler instance

func (*ZoneChassisHandler) AddLocalZoneNode

func (zch *ZoneChassisHandler) AddLocalZoneNode(node *corev1.Node) error

AddLocalZoneNode marks the chassis entry for the node in the SB DB to a local chassis

func (*ZoneChassisHandler) AddRemoteZoneNode

func (zch *ZoneChassisHandler) AddRemoteZoneNode(node *corev1.Node) error

AddRemoteZoneNode creates the remote chassis for the remote zone node in the SB DB or marks the entry as remote if it was local chassis earlier.

func (*ZoneChassisHandler) DeleteRemoteZoneNode

func (zch *ZoneChassisHandler) DeleteRemoteZoneNode(node *corev1.Node) error

DeleteRemoteZoneNode deletes the remote chassis (if it exists) for the node.

func (*ZoneChassisHandler) SyncNodes

func (zic *ZoneChassisHandler) SyncNodes(kNodes []interface{}) error

SyncNodes cleans up the remote chassis records in the OVN Southbound db for the stale nodes

type ZoneInterconnectHandler

type ZoneInterconnectHandler struct {

	// network which is inter-connected
	util.NetInfo
	// contains filtered or unexported fields
}

ZoneInterconnectHandler creates the OVN resources required for interconnecting multiple zones for a network (default or secondary layer 3)

func NewZoneInterconnectHandler

func NewZoneInterconnectHandler(nInfo util.NetInfo, nbClient, sbClient libovsdbclient.Client, watchFactory *factory.WatchFactory) *ZoneInterconnectHandler

NewZoneInterconnectHandler returns a new ZoneInterconnectHandler object

func (*ZoneInterconnectHandler) AddLocalZoneNode

func (zic *ZoneInterconnectHandler) AddLocalZoneNode(node *corev1.Node) error

AddLocalZoneNode creates the interconnect resources in OVN NB DB for the local zone node. See createLocalZoneNodeResources() below for more details.

func (*ZoneInterconnectHandler) AddRemoteZoneNode

func (zic *ZoneInterconnectHandler) AddRemoteZoneNode(node *corev1.Node) error

AddRemoteZoneNode creates the interconnect resources in OVN NBDB and SBDB for the remote zone node. // See createRemoteZoneNodeResources() below for more details.

func (*ZoneInterconnectHandler) AddTransitPortConfig

func (zic *ZoneInterconnectHandler) AddTransitPortConfig(remote bool, podAnnotation *util.PodAnnotation, port *nbdb.LogicalSwitchPort) error

func (*ZoneInterconnectHandler) AddTransitSwitchConfig

func (zic *ZoneInterconnectHandler) AddTransitSwitchConfig(sw *nbdb.LogicalSwitch) error

func (*ZoneInterconnectHandler) BindTransitRemotePort

func (zic *ZoneInterconnectHandler) BindTransitRemotePort(nodeName, portName string) error

func (*ZoneInterconnectHandler) Cleanup

func (zic *ZoneInterconnectHandler) Cleanup() error

Cleanup deletes the transit switch for the network

func (*ZoneInterconnectHandler) DeleteNode

func (zic *ZoneInterconnectHandler) DeleteNode(node *corev1.Node) error

DeleteNode deletes the local zone node or remote zone node resources

func (*ZoneInterconnectHandler) SyncNodes

func (zic *ZoneInterconnectHandler) SyncNodes(objs []interface{}) error

SyncNodes ensures a transit switch exists and cleans up the interconnect resources present in the OVN Northbound db for the stale nodes

Jump to

Keyboard shortcuts

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