ipvlan

package
v0.0.0-...-7b449fd Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2016 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MethodReceiver = "NetworkDriver"

	TxQueueLen = 0
)
View Source
const (
	IPVLAN_MODE_L2 ipvlanType
	IPVLAN_MODE_L3
)

Variables

View Source
var (
	// Exported user CLI flag config options
	// Most of these are depricated with libnetwork now accepting --options
	FlagIPVlanMode     = cli.StringFlag{Name: "mode", Value: ipVlanMode, Usage: "name of the ipvlan mode [l2|l3]. (default: l2)"}
	FlagGateway        = cli.StringFlag{Name: "gateway", Value: "", Usage: "IP of the default gateway (defaultL2 mode: first usable address of a subnet. Subnet 192.168.1.0/24 would mean the container gateway to 192.168.1.1)"}
	FlagSubnet         = cli.StringFlag{Name: "ipvlan-subnet", Value: defaultSubnet, Usage: "subnet for the containers (l2 mode: 192.168.1.0/24)"}
	FlagMtu            = cli.IntFlag{Name: "mtu", Value: cliMTU, Usage: "MTU of the container interface (default: 1500)"}
	FlagIpvlanEthIface = cli.StringFlag{Name: "host-interface", Value: ipVlanEthIface, Usage: "(required) interface that the container will be communicating outside of the docker host with"}
	FlagRoutingManager = cli.StringFlag{Name: "routemng", Value: routingManager, Usage: "name of the routing manager name [gobgp]. (default: gobgp)"}
	FlagBgpAs          = cli.StringFlag{Name: "as", Value: BgpAs, Usage: "AS number of bgp router. (default: 65000)"}
)
View Source
var (
	BgpAs = "65000"
)

Functions

This section is empty.

Types

type Driver

type Driver interface {
	Listen(string) error
}

func New

func New(version string, ctx *cli.Context) (Driver, error)

type EndpointInterface

type EndpointInterface struct {
	Address     string
	AddressIPv6 string
	MacAddress  string
}

EndpointInterface represents an interface endpoint.

type InterfaceName

type InterfaceName struct {
	SrcName   string
	DstName   string
	DstPrefix string
}

Jump to

Keyboard shortcuts

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