This Page

The quantum.agent.linux.interface Module

class quantum.agent.linux.interface.BridgeInterfaceDriver(conf)

Bases: quantum.agent.linux.interface.LinuxInterfaceDriver

Driver for creating bridge interfaces.

DEV_NAME_PREFIX = 'ns-'
plug(network_id, port_id, device_name, mac_address, bridge=None, namespace=None, prefix=None)

Plugin the interface.

unplug(device_name, bridge=None, namespace=None, prefix=None)

Unplug the interface.

class quantum.agent.linux.interface.LinuxInterfaceDriver(conf)

Bases: object

DEV_NAME_LEN = 14
DEV_NAME_PREFIX = 'tap'
check_bridge_exists(bridge)
get_device_name(port)
init_l3(device_name, ip_cidrs, namespace=None)

Set the L3 settings for the interface using data from the port. ip_cidrs: list of ‘X.X.X.X/YY’ strings

plug(network_id, port_id, device_name, mac_address, bridge=None, namespace=None, prefix=None)

Plug in the interface.

unplug(device_name, bridge=None, namespace=None, prefix=None)

Unplug the interface.

class quantum.agent.linux.interface.MetaInterfaceDriver(conf)

Bases: quantum.agent.linux.interface.LinuxInterfaceDriver

get_device_name(port)
plug(network_id, port_id, device_name, mac_address, bridge=None, namespace=None, prefix=None)
unplug(device_name, bridge=None, namespace=None, prefix=None)
class quantum.agent.linux.interface.NullDriver(conf)

Bases: quantum.agent.linux.interface.LinuxInterfaceDriver

plug(network_id, port_id, device_name, mac_address, bridge=None, namespace=None, prefix=None)
unplug(device_name, bridge=None, namespace=None, prefix=None)
class quantum.agent.linux.interface.OVSInterfaceDriver(conf)

Bases: quantum.agent.linux.interface.LinuxInterfaceDriver

Driver for creating an internal interface on an OVS bridge.

DEV_NAME_PREFIX = 'tap'
plug(network_id, port_id, device_name, mac_address, bridge=None, namespace=None, prefix=None)

Plug in the interface.

unplug(device_name, bridge=None, namespace=None, prefix=None)

Unplug the interface.