Documentation ¶
Index ¶
- type VSwitch
- func (o *VSwitch) BridgeAdd(bridgeName string, mayExist bool, hwaddr net.HardwareAddr, mtu uint32) error
- func (o *VSwitch) BridgeDelete(bridgeName string) error
- func (o *VSwitch) BridgeExists(bridgeName string) (bool, error)
- func (o *VSwitch) BridgePortAdd(bridgeName string, portName string, mayExist bool) error
- func (o *VSwitch) BridgePortDelete(bridgeName string, portName string) error
- func (o *VSwitch) BridgePortList(bridgeName string) ([]string, error)
- func (o *VSwitch) BridgePortSet(portName string, options ...string) error
- func (o *VSwitch) ChassisID() (string, error)
- func (o *VSwitch) HardwareOffloadingEnabled() bool
- func (o *VSwitch) Installed() bool
- func (o *VSwitch) InterfaceAssociateOVNSwitchPort(interfaceName string, ovnSwitchPortName string) error
- func (o *VSwitch) InterfaceAssociatedOVNSwitchPort(interfaceName string) (string, error)
- func (o *VSwitch) OVNBridgeMappingAdd(bridgeName string, providerName string) error
- func (o *VSwitch) OVNBridgeMappingDelete(bridgeName string, providerName string) error
- func (o *VSwitch) OVNBridgeMappings(bridgeName string) ([]string, error)
- func (o *VSwitch) OVNEncapIP() (net.IP, error)
- func (o *VSwitch) OVNSouthboundDBRemoteAddress() (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type VSwitch ¶
type VSwitch struct {
// contains filtered or unexported fields
}
VSwitch client.
func (*VSwitch) BridgeAdd ¶
func (o *VSwitch) BridgeAdd(bridgeName string, mayExist bool, hwaddr net.HardwareAddr, mtu uint32) error
BridgeAdd adds a new bridge.
func (*VSwitch) BridgeDelete ¶
BridgeDelete deletes a bridge.
func (*VSwitch) BridgeExists ¶
BridgeExists returns true if the bridge exists.
func (*VSwitch) BridgePortAdd ¶
BridgePortAdd adds a port to the bridge (if already attached does nothing).
func (*VSwitch) BridgePortDelete ¶
BridgePortDelete deletes a port from the bridge (if already detached does nothing).
func (*VSwitch) BridgePortList ¶
BridgePortList returns a list of ports that are connected to the bridge.
func (*VSwitch) BridgePortSet ¶
BridgePortSet sets port options.
func (*VSwitch) HardwareOffloadingEnabled ¶
HardwareOffloadingEnabled returns true if hardware offloading is enabled.
func (*VSwitch) InterfaceAssociateOVNSwitchPort ¶
func (o *VSwitch) InterfaceAssociateOVNSwitchPort(interfaceName string, ovnSwitchPortName string) error
InterfaceAssociateOVNSwitchPort removes any existing switch ports associated to the specified ovnSwitchPortName and then associates the specified interfaceName to the OVN switch port.
func (*VSwitch) InterfaceAssociatedOVNSwitchPort ¶
InterfaceAssociatedOVNSwitchPort returns the OVN switch port associated to the interface.
func (*VSwitch) OVNBridgeMappingAdd ¶
OVNBridgeMappingAdd appends an OVN bridge mapping between a bridge and the logical provider name.
func (*VSwitch) OVNBridgeMappingDelete ¶
OVNBridgeMappingDelete deletes an OVN bridge mapping between a bridge and the logical provider name.
func (*VSwitch) OVNBridgeMappings ¶
OVNBridgeMappings gets the current OVN bridge mappings.
func (*VSwitch) OVNEncapIP ¶
OVNEncapIP returns the enscapsulation IP used for OVN underlay tunnels.
func (*VSwitch) OVNSouthboundDBRemoteAddress ¶
OVNSouthboundDBRemoteAddress gets the address of the southbound ovn database.