epcommon

package
v1.4.13 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddSnatRule added in v1.1.0

func AddSnatRule(match string, ip net.IP) error

This fucntion adds rule which snat to ip passed filtered by match string.

func AllowIPAddresses added in v1.0.24

func AllowIPAddresses(bridgeName string, skipAddresses []string, action string) error

func BlockIPAddresses added in v1.0.24

func BlockIPAddresses(bridgeName string, action string) error

func DisableRAForInterface added in v1.1.3

func DisableRAForInterface(ifName string) error

func EnableIPForwarding added in v1.0.26

func EnableIPForwarding(ifName string) error

This fucntion enables ip forwarding in VM and allow forwarding packets from the interface

func EnableIPV6Forwarding added in v1.1.0

func EnableIPV6Forwarding() error

func UpdateIPV6Setting added in v1.1.0

func UpdateIPV6Setting(disable int) error

This functions enables/disables ipv6 setting based on enable parameter passed.

Types

type EPCommon added in v1.4.13

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

func NewEPCommon added in v1.4.13

func NewEPCommon(nl netlink.NetlinkInterface) EPCommon

func (EPCommon) AssignIPToInterface added in v1.4.13

func (epc EPCommon) AssignIPToInterface(interfaceName string, ipAddresses []net.IPNet) error

func (EPCommon) CreateEndpoint added in v1.4.13

func (epc EPCommon) CreateEndpoint(hostVethName string, containerVethName string) error

func (EPCommon) SetupContainerInterface added in v1.4.13

func (epc EPCommon) SetupContainerInterface(containerVethName string, targetIfName string) error

Jump to

Keyboard shortcuts

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