OVS: update status according to admin_state_up

Fixes bug 1099099

In addition to this the code does the following:
1. validates if the port exists on the OVS when a port update event takes
   place
2. when a port is created the initial state is set as 'DOWN'. this is
   later updated by the agent when it is detected as up

Change-Id: I917d4b5aa8df7395fcaa841d77083546478739d2
Reqd. core_plugin for plugin agents & show cfg opts loaded.

For the linuxbridge, openvswitch, nec, and ryu plugin agents,
require the core_plugin configuration option, and throw an
exception, if not present. Note: cannot make this a required
option for all agents, as there are agent that include the
core config options, but do not require core_plugin.

In addition, log (as debug) the configuration options that
have been loaded at start-up for these four agents. This will
help with diagnosing start-up issues related to the
configuraiton settings (or lack of).

Tested that exception thrown, when missing core_plugin
value in config file(s) included, for these four agents.

bug 1059923
Change-Id: I813f0c2a3d0ec01be74a34e56ab085979197a16a
Merge "OVS: update status according to admin_state_up"
Merge "Reqd. core_plugin for plugin agents & show cfg opts loaded."
Revert "Reqd. core_plugin for plugin agents & show cfg opts loaded."

This reverts commit 06ce1329a044b8e7be9db59811d4f4316d0d0743.

bug 1059923

patch was found to not be a valid fix.

Change-Id: I465974f60fd65b4d2c9449267ab108fac13d70c8
OVS cleanup utility removes veth pairs

Fixes bug 1094185

OVSInterfaceDriver plug() creates a veth pair and add it to an OVS
bridge when ovs_use_veth=True. It is useful that OVS cleanup utility
removes such veth paris in addition to removing OVS ports.

Veth pairs to be removed are veth devices corresponding to ports
removed when all_ovs_port==False. Veth pairs created to connect
the integration bridge and physical bridges are not removed.

Change-Id: Ia87f0464e69a45dd0bdfd907ac71a003df9fc23f
Fixes import order errors

Change-Id: I3df7bfb2e0812b006fa41bd76fb6156ebcd74362
Clean up test_extensions.py imports

Remove unnessesary imports
Import only modules

Change-Id: I4988714e3ae31ce77f3a2c1e27e81dd6258c7546
Fix OVSQuantumAgent.port_update if not admin_state_up

self.agent does not exist. Use self.plugin_rpc, not
self.agent.plugin_rpc.

Change-Id: Id472c07f5a16891c040cc1afdcb457e1ef81beed
Make get_security_groups() return security group rules

In nova, get_security_groups() returns the security groups and their
security group rules. In order to implement the security group proxy
it needs to return this data to nova. This can be done using multiple
requests from nova-api to quantum i.e: get_security_groups(), then
get_security_group() for each group to obtain the rules. If one has a lot
of security groups this will generate a lot of requests. Adding this change
allows all the security groups and their rules to be returned in one shot.

Fix bug 1105399

Change-Id: Ib685960311221ac4e5fe0913c7e00e15ab74accb
Use install_venv_common.py from oslo.

This syncs install_venv_common.py from oslo and reworks the
tools/install_venv.py script to use the new library.

Change-Id: I46bbf7d656e6cb9660e37af2d3ce96150e18e7fe
Set default lock_path in state_path

* Set the default lock_path to be within quantum's state_path
* Fixes bug 1107950

Change-Id: I346d6088d773b508b4a7ba925fdc91fd4f5bf160
Imported Translations from Transifex

Change-Id: I5a2b3949886393b5926bc98793fe00561ab049e6
Add NVP port security implementation

Implements blueprint nvp-port-security-extension

Change-Id: I9f09424b963acb4f4847d11e9a98432094f8c164
Merge "Set default lock_path in state_path"
Merge "OVS cleanup utility removes veth pairs"
Merge "Clean up test_extensions.py imports"
Merge "Use install_venv_common.py from oslo."
Finish adding help strings to all config options in Quantum code.

This adds reasonable help strings to all remaining config options
in Quantum code. This includes all the plugins as well.

Fixes bug 1101356

Change-Id: I1cbe8303ad6d86756b992ae302707a0365625f52
Fix branch in db migration scripts

Fixes bug #1108781

Change-Id: Ia6cfcc4a1cc39136bad99be26f40aac9fa3e3e70