This Page

The quantum.plugins.brocade.QuantumPlugin Module

Implentation of Brocade Quantum Plugin.

class quantum.plugins.brocade.QuantumPlugin.AgentNotifierApi(topic)

Bases: quantum.openstack.common.rpc.proxy.RpcProxy, quantum.agent.securitygroups_rpc.SecurityGroupAgentRpcApiMixin

Agent side of the linux bridge rpc API.

API version history:
1.0 - Initial version.
BASE_RPC_API_VERSION = '1.0'
network_delete(context, network_id)
port_update(context, port, physical_network, vlan_id)
class quantum.plugins.brocade.QuantumPlugin.BridgeRpcCallbacks

Bases: quantum.db.dhcp_rpc_base.DhcpRpcCallbackMixin, quantum.db.l3_rpc_base.L3RpcCallbackMixin, quantum.db.securitygroups_rpc_base.SecurityGroupServerRpcCallbackMixin

Agent callback.

RPC_API_VERSION = '1.1'
TAP_PREFIX_LEN = 3
create_rpc_dispatcher()

Get the rpc dispatcher for this manager.

If a manager would like to set an rpc API version, or support more than one class as the target of rpc messages, override this method.

get_device_details(rpc_context, **kwargs)

Agent requests device details.

classmethod get_port_from_device(device)

Get port from the brocade specific db.

update_device_down(rpc_context, **kwargs)

Device no longer exists on agent.

class quantum.plugins.brocade.QuantumPlugin.BrocadePluginV2

Bases: quantum.db.db_base_plugin_v2.QuantumDbPluginV2, quantum.db.extraroute_db.ExtraRoute_db_mixin, quantum.db.securitygroups_rpc_base.SecurityGroupServerRpcMixin, quantum.db.agentschedulers_db.AgentSchedulerDbMixin

BrocadePluginV2 is a Quantum plugin.

Provides L2 Virtual Network functionality using VDX. Upper layer driver class that interfaces to NETCONF layer below.

brocade_init()

Brocade specific initialization.

create_network(context, network)

This call to create network translates to creation of port-profile on the physical switch.

create_port(context, port)

Create logical port on the switch.

delete_network(context, net_id)

This call to delete the network translates to removing the port-profile on the physical switch.

delete_port(context, port_id)
get_network(context, id, fields=None)
get_networks(context, filters=None, fields=None, sorts=None, limit=None, marker=None, page_reverse=False)
get_plugin_version()

Get version number of the plugin.

get_port(context, port_id, fields=None)
get_ports(context, filters=None, fields=None)
static mac_reformat_62to34(interface_mac)

Transform MAC address format.

Transforms from 6 groups of 2 hexadecimal numbers delimited by ”:” to 3 groups of 4 hexadecimals numbers delimited by ”.”.

Parameters:interface_mac (string) – MAC address in the format xx:xx:xx:xx:xx:xx
Returns:MAC address in the format xxxx.xxxx.xxxx
Return type:string
update_network(context, id, network)
update_port(context, port_id, port)