A set of Neutron drivers for the VMware NSX.
Go to file
Numan Siddique 58e0b8bafb Fix KeyError in dhcp_rpc when plugin.port_update raise exception
KeyError exception is seen because of following reasons

* DhcpRpcCallback._port_action() is called by two functions
   -  DhcpRpcCallback.create_dchp_port()
   -  DhcpRpcCallback.update_dhcp_port()

* When create_dhcp_port() function calls _port_action(), the
  function argument 'port' will have the body as
  {'port': {'network_id': foo_network_id, 'fixed_ips': [..] ...}

* When update_dhcp_port() function calls _port_action(), the
  function argument 'port' will have the body as
  {'id': port_id, 'port': {{'port': {'network_id': foo_network_id,
			            'fixed_ips': [..] ...}}

* If an exception occurs when _port_action() calls plugin.create_port(),
  network id is accessed as
  net_id = port['port']['network_id']

* If an exception occurs when _port_action() calls plugin.update_port(),
  network id is accessed as
  net_id = port['port']['network_id']
  which is causing the KeyError. network_id should have been accessed as
  net_id = port['port']['port']['network_id']

This patch fixes the issue by making the _port_action() take the
same port body. update_dhcp_port() insteading of passing the port_id
and port information in a single argument, it now adds port_id
in the port body itself.

Change-Id: I70b92fa20b421b05ca2053a9a57f62db726f7625
Closes-bug: #1378508
2014-10-15 13:14:40 +05:30
bin Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
doc Implement ModelsMigrationsSync test from oslo.db 2014-09-30 11:55:06 +04:00
etc Merge "Add comments to iptables rules to help debugging" 2014-10-07 23:19:15 +00:00
neutron Fix KeyError in dhcp_rpc when plugin.port_update raise exception 2014-10-15 13:14:40 +05:30
rally-scenarios Add config for performance gate job 2014-06-26 14:27:15 +03:00
tools Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
.coveragerc fix some missing change from quantum to neutron 2013-07-08 12:11:04 +08:00
.gitignore Ignore emacs checkpoint files 2014-06-18 13:48:41 -05:00
.gitreview Rename quantum to neutron in .gitreview. 2013-07-06 12:25:09 -04:00
.mailmap Add mailmap entry 2014-05-16 13:40:04 -04:00
.pylintrc Remove duplicate module-rgx line in .pylintrc 2014-05-06 22:57:33 +00:00
.testr.conf Add an explicit tox job for functional tests 2014-02-05 17:11:52 +00:00
babel.cfg Use babel to generate translation file 2013-01-24 00:20:32 +08:00
CONTRIBUTING.rst Add CONTRIBUTING.rst 2014-07-08 23:49:07 +08:00
HACKING.rst Remove @author(s) from copyright statements 2014-09-15 21:40:09 +09:00
LICENSE Adding Apache Version 2.0 license file. This is the official license agreement under which Quantum code is available to 2011-08-08 12:31:04 -07:00
MANIFEST.in Rename Quantum to Neutron 2013-07-06 15:02:43 -04:00
openstack-common.conf Switch to using of oslo.db 2014-06-30 14:07:59 +03:00
README.rst Make readme reference git.openstack.org not github 2014-07-17 10:57:12 +02:00
requirements.txt Updated from global requirements 2014-10-07 19:13:11 +00:00
run_tests.sh Provide a quick way to run flake8 2014-08-30 21:30:17 +09:00
setup.cfg Merge "Open Kilo development" 2014-10-02 17:19:42 +00:00
setup.py Updated from global requirements 2014-04-30 02:41:29 +00:00
test-requirements.txt Updated from global requirements 2014-10-07 19:13:11 +00:00
TESTING.rst Merge "Add a gate-specific tox env for functional tests" 2014-07-19 02:48:16 +00:00
tox.ini Set dsvm-functional job to use system packages 2014-09-17 19:57:41 +00:00

# -- Welcome!

You have come across a cloud computing network fabric controller. It has identified itself as "Neutron." It aims to tame your (cloud) networking!

# -- External Resources:

The homepage for Neutron is: http://launchpad.net/neutron. Use this site for asking for help, and filing bugs. Code is available on git.openstack.org at <http://git.openstack.org/cgit/openstack/neutron>.

The latest and most in-depth documentation on how to use Neutron is available at: <http://docs.openstack.org>. This includes:

Neutron Administrator Guide http://docs.openstack.org/trunk/openstack-network/admin/content/

Neutron API Reference: http://docs.openstack.org/api/openstack-network/2.0/content/

The start of some developer documentation is available at: http://wiki.openstack.org/NeutronDevelopment

For help using or hacking on Neutron, you can send mail to <mailto:openstack-dev@lists.openstack.org>.