]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Check gateway ip when update subnet
authorshihanzhang <shihanzhang@huawei.com>
Sat, 31 Oct 2015 09:01:48 +0000 (17:01 +0800)
committershihanzhang <shihanzhang@huawei.com>
Mon, 23 Nov 2015 06:27:31 +0000 (14:27 +0800)
commit935348ce929ccdedc76e2e5742f312af9bbb12b6
treed399bf05d96348e1845de18cd9e797363b640324
parent5ee28c58f4e189808a86c5d70131fd70b1840910
Check gateway ip when update subnet

If a IP address is None, the method netaddr.IPAddress will raise a
error as 'failed to detect a valid IP address from None'.
When it updates subnet, if gateway_ip is None, it should not call the
method validate_gw_out_of_pools.

Change-Id: Ibb007fe7e6402c174129074288b8af891182cd68
Closes-bug: #1511925
neutron/db/db_base_plugin_v2.py
neutron/tests/unit/db/test_db_base_plugin_v2.py