Documentation ¶
Index ¶
- Constants
- type OvsSwitch
- func (sw *OvsSwitch) AddPeer(vtepIP string) error
- func (sw *OvsSwitch) AddUplinkPort(intfName string) error
- func (sw *OvsSwitch) CreateEndpoint(intfName, macAddr, ipAddr string, pktTag int) error
- func (sw *OvsSwitch) CreateNetwork(pktTag uint16, extPktTag uint32) error
- func (sw *OvsSwitch) Delete()
- func (sw *OvsSwitch) DeleteEndpoint(intfName string) error
- func (sw *OvsSwitch) DeleteNetwork(pktTag uint16, extPktTag uint32) error
- func (sw *OvsSwitch) RemovePeer(vtepIP string) error
- func (sw *OvsSwitch) UpdateEndpoint(intfName, macAddr, ipAddr string, pktTag int) error
Constants ¶
View Source
const OVS_CTRLER_IP = "127.0.0.1"
View Source
const OVS_CTRLER_PORT = 6633
View Source
const USE_VETH_PAIR = true
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OvsSwitch ¶
type OvsSwitch struct {
// contains filtered or unexported fields
}
OvsSwitch represents on OVS bridge instance
func NewOvsSwitch ¶
NewOvsSwitch Creates a new OVS switch instance
func (*OvsSwitch) AddUplinkPort ¶
AddUplinkPort adds uplink port to the OVS
func (*OvsSwitch) CreateEndpoint ¶
CreateEndpoint creates a port in ovs switch
func (*OvsSwitch) CreateNetwork ¶
CreateNetwork creates a new network/vlan
func (*OvsSwitch) Delete ¶
func (sw *OvsSwitch) Delete()
Delete performs cleanup prior to destruction of the OvsDriver
func (*OvsSwitch) DeleteEndpoint ¶
DeleteEndpoint removes a port from OVS
func (*OvsSwitch) DeleteNetwork ¶
DeleteNetwork deletes a network/vlan
func (*OvsSwitch) RemovePeer ¶
RemovePeer deletes a VTEP
Click to show internal directories.
Click to hide internal directories.