networkroutedbridge

package
v0.0.0-...-63b02d4 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewNetworker

func NewNetworker() network.Networker

Types

type T

type T struct {
	network.T
}

func New

func New() *T

func (T) BackendDevName

func (t T) BackendDevName() string

func (T) CNIConfigData

func (t T) CNIConfigData() (interface{}, error)

CNIConfigData returns a cni network configuration, like

{
   "cniVersion": "0.3.0",
   "name": "net1",
   "type": "bridge",
   "bridge": "obr_net1",
   "isGateway": true,
   "ipMasq": false,
   "ipam": {
       "type": "host-local",
       "subnet": "10.23.0.0/26",
       "routes": [
           {
               "dst": "0.0.0.0/0"
           },
           {
               "dst": "10.23.0.0/24",
               "gw": "10.23.0.1"
           }
       ]
   }
}

func (*T) Setup

func (t *T) Setup() error

Jump to

Keyboard shortcuts

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