Documentation ¶
Index ¶
- type Bridge
- type OpenvSwitch
- type OvsBridgeDriver
- type OvsDriver
- func (ovsd *OvsDriver) BridgeList() ([]string, error)
- func (ovsd *OvsDriver) Disconnected(ovsClient client.Client)
- func (ovsd *OvsDriver) Echo([]interface{})
- func (ovsd *OvsDriver) FindInterfacesWithError() ([]string, error)
- func (ovsd *OvsDriver) GetOFPortOpState(portName string) (string, error)
- func (ovsd *OvsDriver) GetOFPortVlanState(portName string) (string, *uint, []uint, error)
- func (ovsd *OvsDriver) GetOvsPortForContIface(contIface, contNetnsPath string) (string, bool, error)
- func (ovsd *OvsDriver) IsBridgePresent(bridgeName string) (bool, error)
- func (ovsd *OvsDriver) Locked([]interface{})
- func (ovsd *OvsDriver) Stolen([]interface{})
- func (ovsd *OvsDriver) Update(context interface{}, tableUpdates ovsdb.TableUpdates)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bridge ¶ added in v0.22.0
type Bridge struct {
UUID string `ovsdb:"_uuid"`
}
Bridge defines an object in Bridge table
type OpenvSwitch ¶ added in v0.22.0
type OpenvSwitch struct {
UUID string `ovsdb:"_uuid"`
}
OpenvSwitch defines an object in Open_vSwitch table
type OvsBridgeDriver ¶
OvsBridgeDriver OVS bridge driver state
func NewOvsBridgeDriver ¶
func NewOvsBridgeDriver(bridgeName, socketFile string) (*OvsBridgeDriver, error)
NewOvsBridgeDriver Create a new OVS driver for a bridge with Unix socket
func (*OvsBridgeDriver) CreatePort ¶
func (ovsd *OvsBridgeDriver) CreatePort(intfName, contNetnsPath, contIfaceName, ovnPortName string, vlanTag uint, trunks []uint, portType string) error
CreatePort Create an internal port in OVS
func (*OvsBridgeDriver) DeletePort ¶
func (ovsd *OvsBridgeDriver) DeletePort(intfName string) error
DeletePort Delete a port from OVS
type OvsDriver ¶ added in v0.20.0
type OvsDriver struct {
// contains filtered or unexported fields
}
OvsDriver OVS driver state
func NewOvsDriver ¶ added in v0.20.0
NewOvsDriver Create a new OVS driver with Unix socket
func (*OvsDriver) BridgeList ¶ added in v0.20.0
BridgeList returns available ovs bridge names
func (*OvsDriver) Disconnected ¶ added in v0.20.0
Disconnected yet to be implemented
func (*OvsDriver) Echo ¶ added in v0.20.0
func (ovsd *OvsDriver) Echo([]interface{})
Echo yet to be implemented
func (*OvsDriver) FindInterfacesWithError ¶ added in v0.20.0
FindInterfacesWithError returns the interfaces which are in error state
func (*OvsDriver) GetOFPortOpState ¶ added in v0.20.0
GetOFPortOpState retrieves link state of the OF port
func (*OvsDriver) GetOFPortVlanState ¶ added in v0.26.0
GetOFPortVlanState retrieves port vlan state of the OF port
func (*OvsDriver) GetOvsPortForContIface ¶ added in v0.20.0
func (ovsd *OvsDriver) GetOvsPortForContIface(contIface, contNetnsPath string) (string, bool, error)
GetOvsPortForContIface Return ovs port name for an container interface
func (*OvsDriver) IsBridgePresent ¶ added in v0.20.0
IsBridgePresent Check if the bridge entry already exists
func (*OvsDriver) Locked ¶ added in v0.20.0
func (ovsd *OvsDriver) Locked([]interface{})
Locked yet to be implemented
func (*OvsDriver) Stolen ¶ added in v0.20.0
func (ovsd *OvsDriver) Stolen([]interface{})
Stolen yet to be implemented
func (*OvsDriver) Update ¶ added in v0.20.0
func (ovsd *OvsDriver) Update(context interface{}, tableUpdates ovsdb.TableUpdates)
Update yet to be implemented