ovssnat

package
v1.0.20 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SnatBridgeName = "azSnatbr"
	ImdsIP         = "169.254.169.254/32"
)

Variables

This section is empty.

Functions

func AddMasqueradeRule

func AddMasqueradeRule(snatBridgeIPWithPrefix string) error

func AddVlanDropRule

func AddVlanDropRule() error

func CreateSnatBridge

func CreateSnatBridge(snatBridgeIP string, mainInterface string) error

func DeleteMasqueradeRule

func DeleteMasqueradeRule() error

func DeleteSnatBridge

func DeleteSnatBridge(bridgeName string) error

Types

type OVSSnatClient

type OVSSnatClient struct {
	SkipAddressesFromBlock []string
	// contains filtered or unexported fields
}

func NewSnatClient

func NewSnatClient(hostIfName string, contIfName string, localIP string, snatBridgeIP string, skipAddressesFromBlock []string) OVSSnatClient

func (*OVSSnatClient) AddPrivateIPBlockRule

func (client *OVSSnatClient) AddPrivateIPBlockRule() error

func (*OVSSnatClient) ConfigureSnatContainerInterface

func (client *OVSSnatClient) ConfigureSnatContainerInterface() error

func (*OVSSnatClient) CreateSnatEndpoint

func (client *OVSSnatClient) CreateSnatEndpoint(bridgeName string) error

func (*OVSSnatClient) DeleteSnatEndpoint

func (client *OVSSnatClient) DeleteSnatEndpoint() error

func (*OVSSnatClient) MoveSnatEndpointToContainerNS

func (client *OVSSnatClient) MoveSnatEndpointToContainerNS(netnsPath string, nsID uintptr) error

func (*OVSSnatClient) SetupSnatContainerInterface

func (client *OVSSnatClient) SetupSnatContainerInterface() error

Jump to

Keyboard shortcuts

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