utils

package
v1.13.1-rc.1 Latest Latest
Warning

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

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

Documentation

Overview

Package utils provides helper methods related to ovs and ip parsing

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigureOvS

func ConfigureOvS(ctx context.Context, l2Connections map[string]*L2ConnectionPoint, bridgeName string) error

ConfigureOvS creates ovs bridge and make it as an integration bridge

func GetInterfaceOfPort

func GetInterfaceOfPort(logger log.Logger, interfaceName string) (int, error)

GetInterfaceOfPort get Port number from Interface name in OVS

func ParseTunnelIP

func ParseTunnelIP(srcIP net.IP) (net.IP, error)

ParseTunnelIP parses and maps the given ip cidr with available network interface

Types

type L2ConnectionPoint added in v1.2.0

type L2ConnectionPoint struct {
	Interface string
	Bridge    string
}

L2ConnectionPoint contains egress point config used by clients for VLAN breakout

Jump to

Keyboard shortcuts

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