This Page

The quantum.plugins.nicira.nicira_nvp_plugin.QuantumPlugin Module

class quantum.plugins.nicira.nicira_nvp_plugin.QuantumPlugin.NVPRpcCallbacks

Bases: quantum.db.dhcp_rpc_base.DhcpRpcCallbackMixin

RPC_API_VERSION = '1.0'
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.

class quantum.plugins.nicira.nicira_nvp_plugin.QuantumPlugin.NetworkTypes

Allowed provider network types for the NVP Plugin

FLAT = 'flat'
GRE = 'gre'
L3_EXT = 'l3_ext'
STT = 'stt'
VLAN = 'vlan'
class quantum.plugins.nicira.nicira_nvp_plugin.QuantumPlugin.NvpPluginV2(loglevel=None)

Bases: quantum.db.db_base_plugin_v2.QuantumDbPluginV2, quantum.db.l3_db.L3_NAT_db_mixin, quantum.db.portsecurity_db.PortSecurityDbMixin, quantum.db.securitygroups_db.SecurityGroupDbMixin, quantum.plugins.nicira.nicira_nvp_plugin.nicira_networkgw_db.NetworkGatewayMixin, quantum.plugins.nicira.nicira_nvp_plugin.nicira_qos_db.NVPQoSDbMixin, quantum.plugins.nicira.nicira_nvp_plugin.common.securitygroups.NVPSecurityGroups, quantum.plugins.nicira.nicira_nvp_plugin.common.metadata_access.NvpMetadataAccess, quantum.db.agentschedulers_db.AgentSchedulerDbMixin

NvpPluginV2 is a Quantum plugin that provides L2 Virtual Network functionality using NVP.

add_router_interface(context, router_id, interface_info)
create_network(context, network)
create_network_gateway(context, network_gateway)

Create a layer-2 network gateway

Create the gateway service on NVP platform and corresponding data structures in Quantum datase

create_port(context, port)
create_qos_queue(context, qos_queue, check_policy=True)
create_router(context, router)
create_security_group(context, security_group, default_sg=False)

Create security group. If default_sg is true that means a we are creating a default security group and we don’t need to check if one exists.

create_security_group_rule(context, security_group_rule)

create a single security group rule

create_security_group_rule_bulk(context, security_group_rule)

create security group rules :param security_group_rule: list of rules to create

default_cluster = None
delete_floatingip(context, id)
delete_network(context, id)
delete_network_gateway(context, id)

Remove a layer-2 network gateway

Remove the gateway service from NVP platform and corresponding data structures in Quantum datase

delete_port(context, id, l3_port_check=True, nw_gw_port_check=True)

Deletes a port on a specified Virtual Network, if the port contains a remote interface attachment, the remote interface is first un-plugged and then the port is deleted.

Returns:None
Raises :exception.PortInUse
Raises :exception.PortNotFound
Raises :exception.NetworkNotFound
delete_qos_queue(context, id, raise_in_use=True)
delete_router(context, id)
delete_security_group(context, security_group_id)

Delete a security group :param security_group_id: security group rule to remove.

delete_security_group_rule(context, sgrid)

Delete a security group rule :param sgrid: security group id to remove.

disassociate_floatingips(context, port_id)
get_all_networks(tenant_id, **kwargs)
get_network(context, id, fields=None)
get_network_gateway(context, id, fields=None)
get_network_gateways(context, filters=None, fields=None)
get_networks(context, filters=None, fields=None)
get_plugin_version()
get_port(context, id, fields=None)
get_ports(context, filters=None, fields=None)
get_qos_queue(context, id, fields=None)
get_qos_queues(context, filters=None, fields=None)
get_router(context, id, fields=None)
get_routers(context, filters=None, fields=None)
novazone_cluster_map = {}
port_security_enabled_create = 'create_port:port_security_enabled'
port_security_enabled_update = 'update_port:port_security_enabled'
provider_network_set = 'extension:provider_network:set'
provider_network_view = 'extension:provider_network:view'
remove_router_interface(context, router_id, interface_info)
setup_rpc()
supported_extension_aliases = ['provider', 'quotas', 'port-security', 'router', 'security-group', 'nvp-qos', 'network-gateway']
update_network(context, id, network)
update_port(context, id, port)
update_router(context, id, router)
quantum.plugins.nicira.nicira_nvp_plugin.QuantumPlugin.parse_clusters_opts(clusters_opts, concurrent_connections, nvp_gen_timeout, default_cluster_name)
quantum.plugins.nicira.nicira_nvp_plugin.QuantumPlugin.parse_config()

Parse the supplied plugin configuration.

Parameters:config – a ConfigParser() object encapsulating nvp.ini.
Returns:A tuple: (clusters, plugin_config). ‘clusters’ is a list of NVPCluster objects, ‘plugin_config’ is a dictionary with plugin parameters (currently only ‘max_lp_per_bridged_ls’).