gateway

package
v0.0.0-...-6c366bb Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

View Source
const (
	// OvnGatewayLoadBalancerIds represent the OVN loadbalancers used on nodes
	OvnGatewayLoadBalancerIds = "lb_gateway_router"
)

Variables

View Source
var (
	// It is perfectly normal to have OVN GW routers to not to have LB rules. This happens
	// when NodePort is disabled for that node.
	OVNGatewayLBIsEmpty = errors.New("load balancer item in OVN DB is an empty string")
)

Functions

func CreateDummyGWMacBindings

func CreateDummyGWMacBindings(nbClient libovsdbclient.Client, gwRouterName string, netInfo util.NetInfo) error

CreateDummyGWMacBindings creates mac bindings (ipv4 and ipv6) for a fake next hops used by host->service traffic

func DeleteDummyGWMacBindings

func DeleteDummyGWMacBindings(nbClient libovsdbclient.Client, gwRouterName string, netInfo util.NetInfo) error

DeleteDummyGWMacBindings removes mac bindings (ipv4 and ipv6) for a fake next hops used by host->service traffic

func GetGatewayPhysicalIPs

func GetGatewayPhysicalIPs(nbClient libovsdbclient.Client, gatewayRouter string) ([]string, error)

GetGatewayPhysicalIPs return gateway physical IPs

func GetOvnGateways

func GetOvnGateways(nbClient libovsdbclient.Client) ([]string, error)

GetOvnGateways return all created gateways.

Types

This section is empty.

Jump to

Keyboard shortcuts

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