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
Remove openstack.common.exception usage

This file is deprecated, stop using it.

Change-Id: I5d79b8c0134bb5f4021487542d4d0a964281b8bf
Fixes-Bug: #1208734
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
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
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
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
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"
Imported Translations from Transifex

Change-Id: I63533a673e63caebbf65ad87e71004082066195f
Enable localizable REST API responses via the Accept-Language header

Add support for doing language resolution for a request, based on the
Accept-Language HTTP header. Using the lazy gettext functionality, from
oslo gettextutils, it is possible to use the resolved language to
translate exception messages to the user requested language and
return that translation from the API.

Partially implements bp user-locale-api.

Change-Id: I63edc8463836bfff257daa8a2c66ed5d3a444254
Merge "Fix wrong column name in db migration script of ryu plugin"
Merge "Fix BigSwitch plugin to handle device_id re-use in porttracker code"
Merge "Enable localizable REST API responses via the Accept-Language header"