]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Nicira plugin: Do not expect a minimum number of SNAT rules
authorSalvatore Orlando <salv.orlando@gmail.com>
Wed, 19 Jun 2013 22:51:29 +0000 (00:51 +0200)
committerSalvatore Orlando <salv.orlando@gmail.com>
Wed, 19 Jun 2013 22:51:29 +0000 (00:51 +0200)
commit0d5dccfd3223da59c446e4a8c2e34d8f250a28af
treeb941d9e8d29524aa26d70b140c6f802652da3d77
parent248375ed0b9c7a30110cba8e232680d7223c571e
Nicira plugin: Do not expect a minimum number of SNAT rules

Bug 1192392

The code was assuming a SNAT rule for each subnet was always present
when clearing a gateway. If the SNAT rule was removed for some other
reason from the NVP backend, this would have led to the failure of
the whole operation; however, a failure won't have been necessary
in this case, as the final effect of the operation is to remove
the rules anyway.

Also, this patch ensures a quantum router is put in ERROR state if
it is not found on the NVP backend.

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