]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Allow ports to be created on networks that do not exist in NVP
authorAaron Rosen <arosen@nicira.com>
Mon, 13 May 2013 00:25:04 +0000 (17:25 -0700)
committerAaron Rosen <arosen@nicira.com>
Mon, 13 May 2013 17:08:36 +0000 (10:08 -0700)
commitdbee58e7bb2ed1df6bb513247ec7ac07387ff5d1
tree9e4ffd2dcbe8677517c8c44f0f64420e8d45a5db
parent2a0e7f2fa788c6aea73a9a0305355f5450e5b471
Allow ports to be created on networks that do not exist in NVP

If a network exists in the quantum database but not in NVP we should allow
someone to create a port on this network and set the status to ERROR. The
reason for this is if one deletes a network from NVP and when the dhcp agent
goes to create it's dhcp port on this network an error will be raised to the
agent and it will enter a constant state of resyncing.

This patch also adds a unit test for update_port() for the same situation.

Fixes bug 1179327

Change-Id: Ie77fc48d11644b820c0cc3b3fa341856e36f8511
quantum/plugins/nicira/QuantumPlugin.py
quantum/tests/unit/nicira/test_nicira_plugin.py