set default for gw conn info in nvp_networkgw extension

Bug 1183285

This patch simply guarantees default segmentation type and
id in gateway connection info for the 'connect' and 'disconnect'
actions are correctly set respectively to 'flat' and 0.

Change-Id: I1b4e8274651e05f4681878ab70daef990ece901b
Enable attribute-based policy on router:external_gateway_info

Bug 1186081

This patch also removes a check on is_write in policy.py since
the code block where that check is placed assumed already that
is_write == True

Change-Id: I21c54f63e1948675f67afb088c262dc5316c230d
Remove code duplication from loadbalancer db plugin

Use _get_resource instead of duplicating code that fetches pools

fixes bug 1191406

Change-Id: I380c97a2ece0536b49891ac797ec7170e44a6a20
Merge "Remove code duplication from loadbalancer db plugin"
Merge "Enable attribute-based policy on router:external_gateway_info"
Merge "set default for gw conn info in nvp_networkgw extension"
Imported Translations from Transifex

Change-Id: Ia89635fa01778f8d4ae8695fce2e6dbd264ebd37
Update to the latest stevedore

Use a version of stevedore that does not try to
install distribute.

The requirements change is in https://review.openstack.org/#/c/32738/

Change-Id: If39d886cb68044871617600650ef8546635143bc
Merge "Update to the latest stevedore"
Require pbr 0.5.16 or newer

Use a version of pbr greater then 0.5.15. Earlier versions have problems
when alpha tarballs are used as dependencies.

Fixes bug 1191155

Change-Id: I889358ae746761b282c5933c53bce10017be4c57
Merge "Require pbr 0.5.16 or newer"
Correct log message in l3_rpc_agent_api

Fixes bug #1191623

Change-Id: Ib692a62d6f557ab9a50da1d888e291e3e24871fb
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
Imported Translations from Transifex

Change-Id: I2574deaf76efd729c53b7a68632bbd62d629155d
Imported Translations from Transifex

Change-Id: I7566406d89c2eda65be77306033f3034e3cb9abd
Allow use of lowercase section names in conf files

Fixes bug #1189889

oslo.config-1.2.0 normalizes section names in config files to lowercase.
This means that simply by upgrading to oslo.config-1.2.0, users will now
be able to do e.g.

  [default_servicetype]
  description = ...
  service_definition = ...

Change the default config files to make it clear we recommend the use of
lowercase section names.

Note, the use of an alpha tarball of oslo.config requires pbr>=0.5.15
but we already require >=0.5.16.

DocImpact

Change-Id: Ia47fb3d168da71d3221b25979f8c9257d70dd64d
Reference default_servicetype group in lowercase

Now that we require oslo-config-1.2.0, we can start referencing group
names as lowercase. Let's start with the default_servicetype group.

We do this simply by changing the case of the group name passed to
register_opt():

  -cfg.CONF.register_opts(..., 'DEFAULT_SERVICETYPE')
  +cfg.CONF.register_opts(..., 'default_servicetype')

and this means that all options in the group now need to be referenced
using the lowercase group name i.e.

  -svc_defs = cfg.CONF.DEFAULT_SERVICETYPE.service_definition
  +svc_defs = cfg.CONF.default_servicetype.service_definition

Note however, users can still use the uppercase section name for
backwards compatibility.

When we last attempted to do this, oslo.config-1.2.0 wasn't actually
being installed correctly so add a unit test which verifies that both
uppercase and lowercase section names work.

Change-Id: I9357397f39d8f7d0d4f445b78aae5665c7ece3d4
Fix TestNecAgentMain not to call sys.exit()

test_main() was calling sys.exit() killing test running
and not allowing tests to complete in a proper way.

Drop explicit sys.exit() call from net agent's main() and
fix outdated mocks in test_main().

Fixes bug #1192270

Change-Id: Iea8d5508f73eb9144e452de3305f2dec4c2a319c
Imported Translations from Transifex

Change-Id: Ic05603ef37a6be3f5482f5b268958eedf4a6eaa1
Merge "Allow use of lowercase section names in conf files"