Documentation ¶
Index ¶
- func AddMultiHop(exec executor.Executor, execnet, tonet, routingTable string, ...) error
- func DeleteMultiHop(exec executor.Executor, execnet, tonet, routingTable string, ...) error
- func Networks(name string) (map[string]NetworkSettings, error)
- func SetupVRFForNetwork(containerName, vrfNetwork, vrfName, vrfRoutingTable string) error
- type NetworkSettings
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddMultiHop ¶
func AddMultiHop(exec executor.Executor, execnet, tonet, routingTable string, ref map[string]NetworkSettings) error
Adds the routes that enable communication between execnet and tonet using the ref routes. The ref routes should come from the container that is connected to both execnet and tonet.
func DeleteMultiHop ¶
func DeleteMultiHop(exec executor.Executor, execnet, tonet, routingTable string, ref map[string]NetworkSettings) error
Deletes the routes that enable communication between execnet and tonet using the ref routes.
func SetupVRFForNetwork ¶ added in v0.13.8
SetupVRFForNetwork takes the name of a container, a docker network and the name of a VRF and: - finds the interface corresponding to the docker network inside the container - creates a vrf named after vrfName if it does not exist - associates the interface listed above to the vrf.
Types ¶
type NetworkSettings ¶
Click to show internal directories.
Click to hide internal directories.