]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Allow gateway address to be unset for an existing subnet
authorarmando-migliaccio <amigliaccio@nicira.com>
Wed, 10 Jul 2013 02:08:49 +0000 (19:08 -0700)
committerarmando-migliaccio <amigliaccio@nicira.com>
Wed, 10 Jul 2013 02:14:08 +0000 (19:14 -0700)
commit40a5853970cdd1555dfb5ebce81c6babf2e445da
tree13dba19462db079458c8762d3bf621c64a1e097f
parentd80048eefc4c076c241d747ea63cb885382f04f0
Allow gateway address to be unset for an existing subnet

Validation of the gateway IP address was taken place even
if the gateway IP was set to None; this was causing an
AddrFormatError exception to be raised by method
'_validate_gw_out_of_pools'. With this change we skip
the validation in case the gateway is set to None.

Fixes bug #1178273

Change-Id: Ib84378a4fd2cefdbbcacce695abbfaf82c647dd3
neutron/db/db_base_plugin_v2.py
neutron/tests/unit/test_db_plugin.py