This Page

The quantum.plugins.nec.drivers.trema Module

class quantum.plugins.nec.drivers.trema.TremaDriverBase(conf_ofc)

Bases: quantum.plugins.nec.ofc_driver_base.OFCDriverBase

Common class for Trema (Sliceable Switch) Drivers

convert_ofc_network_id(context, ofc_network_id, tenant_id)
convert_ofc_tenant_id(context, ofc_tenant_id)
create_network(ofc_tenant_id, description, network_id=None)
create_tenant(description, tenant_id=None)
delete_network(ofc_network_id)
delete_tenant(ofc_tenant_id)
network_path = '/networks/%s'
networks_path = '/networks'
update_tenant(ofc_tenant_id, description)
class quantum.plugins.nec.drivers.trema.TremaFilterDriver

Bases: object

Trema (Sliceable Switch) PacketFilter Driver Mixin

convert_ofc_filter_id(context, ofc_filter_id)
create_filter(ofc_network_id, filter_dict, portinfo=None, filter_id=None)
delete_filter(ofc_filter_id)
filter_path = '/filters/%s'
classmethod filter_supported()
filters_path = '/filters'
class quantum.plugins.nec.drivers.trema.TremaMACBaseDriver(conf_ofc)

Bases: quantum.plugins.nec.drivers.trema.TremaDriverBase

Trema (Sliceable Switch) Driver for mac base binding

TremaPortBaseDriver uses mac base binding. Ports are identified by mac.

attachment_path = '%(network)s/attachments/%(attachment)s'
attachments_path = '%(network)s/attachments'
convert_ofc_port_id(context, ofc_port_id, tenant_id, network_id)
create_port(ofc_network_id, portinfo, port_id=None)
delete_port(ofc_port_id)
classmethod filter_supported()
class quantum.plugins.nec.drivers.trema.TremaPortBaseDriver(conf_ofc)

Bases: quantum.plugins.nec.drivers.trema.TremaDriverBase, quantum.plugins.nec.drivers.trema.TremaFilterDriver

Trema (Sliceable Switch) Driver for port base binding

TremaPortBaseDriver uses port base binding. Ports are identified by datapath_id, port_no and vlan_id.

convert_ofc_port_id(context, ofc_port_id, tenant_id, network_id)
create_port(ofc_network_id, portinfo, port_id=None)
delete_port(ofc_port_id)
port_path = '%(network)s/ports/%(port)s'
ports_path = '%(network)s/ports'
class quantum.plugins.nec.drivers.trema.TremaPortMACBaseDriver(conf_ofc)

Bases: quantum.plugins.nec.drivers.trema.TremaDriverBase, quantum.plugins.nec.drivers.trema.TremaFilterDriver

Trema (Sliceable Switch) Driver for port-mac base binding

TremaPortBaseDriver uses port-mac base binding. Ports are identified by datapath_id, port_no, vlan_id and mac.

attachment_path = '%(network)s/ports/%(port)s/attachments/%(attachment)s'
attachments_path = '%(network)s/ports/%(port)s/attachments'
convert_ofc_port_id(context, ofc_port_id, tenant_id, network_id)
create_port(ofc_network_id, portinfo, port_id=None)
delete_port(ofc_port_id)
port_path = '%(network)s/ports/%(port)s'
ports_path = '%(network)s/ports'