Documentation ¶
Index ¶
- Constants
- Variables
- func CreateDummyGWMacBindings(nbClient libovsdbclient.Client, gwRouterName string, netInfo util.NetInfo) error
- func DeleteDummyGWMacBindings(nbClient libovsdbclient.Client, gwRouterName string, netInfo util.NetInfo) error
- func GetGatewayPhysicalIPs(nbClient libovsdbclient.Client, gatewayRouter string) ([]string, error)
- func GetOvnGateways(nbClient libovsdbclient.Client) ([]string, error)
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.
Click to show internal directories.
Click to hide internal directories.