container

package
v0.13.10 Latest Latest
Warning

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

Go to latest
Published: May 31, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

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 Networks

func Networks(name string) (map[string]NetworkSettings, error)

func SetupVRFForNetwork added in v0.13.8

func SetupVRFForNetwork(containerName, vrfNetwork, vrfName, vrfRoutingTable string) error

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

type NetworkSettings struct {
	Gateway             string `json:"Gateway"`
	IPAddress           string `json:"IPAddress"`
	IPPrefixLen         int    `json:"IPPrefixLen"`
	IPv6Gateway         string `json:"IPv6Gateway"`
	GlobalIPv6Address   string `json:"GlobalIPv6Address"`
	GlobalIPv6PrefixLen int    `json:"GlobalIPv6PrefixLen"`
}

Jump to

Keyboard shortcuts

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