Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewNetworkInterface ¶
func NewNetworkInterface(conf *InitConfig) (types.ContainerNetwork, error)
NewNetworkInterface creates the ContainerNetwork interface for the netavark backend. Note: The networks are not loaded from disk until a method is called.
Types ¶
type InitConfig ¶
type InitConfig struct { // NetworkConfigDir is directory where the network config files are stored. NetworkConfigDir string // NetavarkBinary is the path to the netavark binary. NetavarkBinary string // AardvarkBinary is the path to the aardvark binary. AardvarkBinary string // NetworkRunDir is where temporary files are stored, i.e.the ipam db, aardvark config NetworkRunDir string // DefaultNetwork is the name for the default network. DefaultNetwork string // DefaultSubnet is the default subnet for the default network. DefaultSubnet string // DefaultsubnetPools contains the subnets which must be used to allocate a free subnet by network create DefaultsubnetPools []config.SubnetPool // DNSBindPort is set the the port to pass to netavark for aardvark DNSBindPort uint16 // Syslog describes whenever the netavark debbug output should be log to the syslog as well. // This will use logrus to do so, make sure logrus is set up to log to the syslog. Syslog bool }
Click to show internal directories.
Click to hide internal directories.