netutils

package
Version: v0.0.0-...-29f4744 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2016 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const NETPREFIX = "tap"

Variables

This section is empty.

Functions

func DeviceByNetwork

func DeviceByNetwork(nid string) string

Types

type IP

type IP struct{}

func (IP) DeleteDevice

func (i IP) DeleteDevice(dev string)

func (IP) GetAddress

func (i IP) GetAddress(dev string) (string, error)

func (IP) SetAddress

func (i IP) SetAddress(dev, address string) error

func (IP) SetDeviceUP

func (i IP) SetDeviceUP(dev string)

type IPtable

type IPtable struct{}

func (IPtable) AddRule

func (i IPtable) AddRule(addr string)

func (IPtable) DropRule

func (i IPtable) DropRule(addr string)

type OVS

type OVS struct {
	// contains filtered or unexported fields
}

func NewOVS

func NewOVS(br string) *OVS

func (*OVS) CreateNetwork

func (o *OVS) CreateNetwork(dev string) error

func (*OVS) DeleteNetwork

func (o *OVS) DeleteNetwork(dev string) error

func (*OVS) FindInternal

func (o *OVS) FindInternal() (string, error)

func (*OVS) GetDatapath

func (o *OVS) GetDatapath() (string, error)

Jump to

Keyboard shortcuts

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