Enable router extension in Brocade Plugin

Fixes: bug 1166516

Change-Id: Ia3be25b9cdc21b217200997d1a447dccf8549d64
NEC plugin: Ensure to delete portinfo when port_removed RPC.

Fixes bug #1187249

Change-Id: Iaccfd1d4918df5dc4ba1c0478689fd4c833da7b3
Port profile should not mark vlan as native-vlan

Change-Id: I0b117ad8a3761e8f8ae59ae21fb68bbc3303b35b
Fixes: bug 1186461
(cherry picked from commit c551e4a41878d28addf307ac23efb4f040fafaa2)
DbQuotaDriver allows negative quotas to be set.

Bug 1178886

Change-Id: I06ece65c2d77b8258bb871bb396edc5c145c383a
(cherry picked from commit 9e7933dc55ea086b3a2977d9c25ab503174ba7af)
Expose most common QueuePoll parameters from SQLAlchemy

Fixes bug 1160442

The defualt parameters are used unless otherwise configured. This
is applicable for:
 - pool_size
 - max_overflow
 - pool_timeout

By increasing the pool_size and the max_overflow and lowering the timeout
the issue reported in the bug is resolved.

NOTE: the configuration values enable the user to make use of the default
QueuePool tuning values.

(cherry picked from commit 725d636da5959aee1954a8e8d5ff383d2a8b7bb9)

Change-Id: Ic258442531a2caf2db4f05c4ddd6fbfb0c180f17
Merge "Enable router extension in Brocade Plugin" into stable/grizzly
Merge "NEC plugin: Ensure to delete portinfo when port_removed RPC." into stable/grizzly
Merge "Expose most common QueuePoll parameters from SQLAlchemy" into stable/grizzly
Merge "DbQuotaDriver allows negative quotas to be set." into stable/grizzly
Ensure to remove auto delete ports from OFC in NEC plugin

When deleting a network, dhcp ports are removed automatically
in db_plugin. This causes a failure network deletion since the
corresponding port exists on OFC and the network on OFC cannot
be deleted unless a subnet on the network is deleted explicitly.
This commit gets auto-delete ports and delete the corresponding
ports on the controller before deleting the network.

Fixes bug #1190163

TestNecPluginOfcManager class is borrowed from commit 81ce9890ce
in master branch.

Change-Id: Ifffaa1a28b5fac0b0a98036a926550255cc25c9d
(cherry picked from commit da6816c6c703be68f5a0ce537364bc096ec2bd9d)
Handle portinfo msg after port deletion in NEC plugin

Fixes bug 1187701

Change-Id: I9c5ef3320ad6e9438dca9ccccf27f4cedfe4ceec
(cherry picked from commit d3781d5aa12f6c512a455e59ecc6fe10ca908ca9)
Do not import anything from quantum into rootwrap

The rootwrapper is special and shouldn't do heavy code
loading, first for performance and 2nd for potential
security issues.

It shaves off 0.2s of load time (aka heavy cpu usage when
using openvswitch as it invokes rootwrap twice every 4 seconds)

Fixes LP bug 1190675

This is reverting bug 1053381

    Author: Gary Kotton <gkotton@redhat.com>
    Date:   Sun Sep 23 08:34:33 2012 +0000

        Uses a common subprocess popen function

Change-Id: I629d90aaeb99b225d716da82c6ac5c3f327ebb67
Merge "Ensure to remove auto delete ports from OFC in NEC plugin" into stable/grizzly
Merge "Do not import anything from quantum into rootwrap" into stable/grizzly
Sync Qpid RPC fix from Oslo

A change had to be made in the Havana Qpid implementation that is
not entirely backwards compatible.  This change allows Grizzly to
receive messages in the new format.

Backport of change for bug 1175808

Change-Id: I6ab63c3fccf562aeeb793e09f057c66bc109ef41
Fix IP spoofing filter blocking all packets.

Implement IP spoofing filter by adding yet another chain to iptables
with RETURN rule for each of IP addresses assigned to port and DROP
rule at the end of the chain.

Fixes: bug #1190613
Change-Id: I2e7a0f8dd4c3519c57d28e87a44735a3482624b1
(cherry picked from commit 531ff2fb34df9e6b0f84ada811c29240f0f1cd48)
Merge "Fix IP spoofing filter blocking all packets." into stable/grizzly
Always include tenant_id in port delete request

Quantum does not include the tenant_id in port objects for floating IP addresses.
However, the Big Switch backend requires the tenant_id in the port removal requests.
This looks up the correct tenant_id whenever it is missing in the port removal.

Change-Id: I7580ed2f545ad2d92b831b65dfbb34541bf465aa
Fixes: bug #1190020
(cherry picked from commit f392263ae8c89412ec8be6a13b3dd56abd129a8c)
Ensure that the report state is not a blocking call

Fixes bug 1191768

For the dhcp and l3 agents the first state report will be done
via a call. If this succeeds then subsequent calls will be done via
the cast method.

Change-Id: I82a1d92fc84983b7bb46758db0aee3e3eca1d3be
(cherry picked from commit 0407b59c259b2861b4541e31379e994ea8350b83)
Fix Cisco nexus plugin failure for first VLAN on phy interface

Fixes bug 1174852

This fix changes the command being sent to the Nexus switch for
enabling a VLAN on an interface such that the 'add' keyword is
included only when there are prior VLANs already enabled on that
interface.

(cherry picked from commit - 92ef293d02a7499850bc3becda413d6be22ae06c)

Change-Id: I900e0cac9f88d38b5276a65bdfa7457aed466199