refactor port binding codes

Bug #1195047

This patch:
1. removes the iteration in get_ports to call extend_dict_binding
2. uses a unified way for plugins to do this kind of stuff

ml2 will enhance the binding so that it can have different binding
for port according to port's host.
mlnx and bigswitch are also exceptions due to the dynamic binding info.

Change-Id: I5a77eb7395e14482a856e033f536f72a1bf82e06
Delete useless and wrong comments in NEC Plugin

This commit deletes useless and wrong comments in NEC Plugin, and adds
_clean_nec_ini() to Cleanup to make sure it is called.

Fixes: bug #1208716
Change-Id: I5c7950617cdf5d66f5f5cf3334bf2d5e617148eb
Make NEC Plugin ignore duplicated messgae from the agent

Fixes: bug #1208708
Change-Id: I7d2b779fd0a7356c03e5ef911a98c164a53903ce
Remove openstack.common.exception usage

This file is deprecated, stop using it.

Change-Id: I5d79b8c0134bb5f4021487542d4d0a964281b8bf
Fixes-Bug: #1208734
Make DbPlugin accept status in create_network().

This commit makes NeutronDbPluginV2 get network status from input at
create_network() to allow other plugins to set network status while
creating DB entry.

Now plugins can create network with any status in a single DB commit.
(e.g. Set network status to 'DOWN' when admin_state_up is False.)

This commit also changes NeutronDbPluginV2TestCase() to make default
network status configurable in each plugin test case.

Fixes: bug #1207167
Change-Id: Id3ad26719036c631e4b268150407a2c69919203f
Cisco plugin db code cleanup, part II

Remove an unused table.
Prefix Cisco tablenames with cisco_.
Make full use of neutron model base class.
DRY out the nexusport binding queries.
Follow coding guidelines for imports.
Improve cisco/db/network_db_v2.py test coverage.
Improve cisco/db/nexus_db_v2.py test coverage.

Change-Id: I8ea110de37552176f2d9bcbff4ca3e0b65dfacdc
Closes-bug: #1202687
Partial-bug: #1190619
LBaaS: pass the complete healthmonitor object to driver

Fixes bug: #1208372

Change-Id: I72198446f4de3907d92fc9c2bbdb403cf2e87341
Do not alter test_config global in test_extension_ext_gw_mode

Bug 1199557

Instead, allow subclasses to instruct the base test class which
API extension manager they should use as it is already done with
the plugin name.

Change-Id: If4e53ffca3bdeb4fb218918358437aca41489de4
Change decorator to webob as doesn't need to be wsgi

This patch changes the decorates in the metadata agents to webob.Request
as they don't need to go through wsgi. Note: wsgi.Request's base class
is webob.Request.

Fixes bug: 1208907

Change-Id: I069635eb67812136d314fc260cebf65886a95597
Fix BigSwitch plugin to handle device_id re-use in porttracker code

Updates the BigSwitch port_tracker code to use the sqlalchemy merge method
instead of the add method for the port location tracking code to avoid primary
 key constraint errors if device-ids are moved or re-used

Fixes: bug #1208990
Change-Id: I06065ac888873b00f445d4356b17f084ee38c1ea
Sync oslo gettextutils

Change-Id: Id347e157ca2ccefe510b3328ea0047c87f25b3e4
Imported Translations from Transifex

Change-Id: I9fd1c6211c108e110b4d299af62677e6dc0889fc
Fix wrong column name in db migration script of ryu plugin

Fixes bug #1209172

A column name of tunnelkeys table which db migration script of ryu
plugin creates is wrong.
This patch fixes the column name.

Change-Id: Ic3a445ea200111c0d7db93951804e7c4570420f2
Fix lbaas_pool_scheduler db migration

Fixes bug 1209263

Change-Id: I98b05a1a7dde4bcddfcc37e36c57d47465633e6e
Merge "refactor port binding codes"
Merge "Delete useless and wrong comments in NEC Plugin"
Merge "Cisco plugin db code cleanup, part II"
Merge "Do not alter test_config global in test_extension_ext_gw_mode"
Correct NVP license header files

Note: Pointed out by Akihiro but pushed by me as I was the one who
push these files originally so I have to change the license.

Fixes bug: 1209359

Change-Id: I57d0fc588983e1934ad9321d54e642b72bdbdc9c
Merge "Remove openstack.common.exception usage"