ipvlan

package
v0.0.0-...-dd7ab19 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2015 License: Apache-2.0 Imports: 16 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
	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"}
	// Git bootstrap variables
	FlagGitPollingInt = cli.IntFlag{Name: "poll-interval", Value: 10, Usage: "polling interval in seconds (default: 15 seconds)"}
	FlagGitRepo       = cli.StringFlag{Name: "repo", Value: "", Usage: "(required) URL for the Git boostrap repo. Example: http://username:password@172.16.86.1/nerdalert/git-overlay.git"}
	FlagGitBootstrap  = cli.BoolFlag{Name: "git-multihost", Usage: "(default [false]) run an experimental multi-host endoint bootstrap."}
)
View Source
var (
	IpVlanEthIface = "" // default to eth0?

	BaseDir = "data" // configurable base directory where records are cached

)

Functions

func AddRouteIface

func AddRouteIface(ipVlanL3Network *net.IPNet, iface netlink.Link) error

addRouteIface required for L3 mode adds a link scoped route in the default ns

Types

type Driver

type Driver interface {
	Listen(string) error
}

func New

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

Jump to

Keyboard shortcuts

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