]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Add IP version check for IP address fields.
authorAkihiro MOTOKI <motoki@da.jp.nec.com>
Fri, 7 Sep 2012 10:31:10 +0000 (19:31 +0900)
committerAkihiro MOTOKI <motoki@da.jp.nec.com>
Sat, 8 Sep 2012 21:44:12 +0000 (06:44 +0900)
commit3d1608de0da3e194735edf058d524d31b507b2a6
tree617803823beaf7660c20d237f80ca296527c93df
parent4ce397d02c479026cb9d5d56477983c5dd6ea02a
Add IP version check for IP address fields.

Fixes bug 1046952

In create/update_subnet(), IP address fields (cidr, gateway_ip, host_routes,
dns_nameserver) should be checked whether they are consistent with IP version
specified. IP version check for allocation_pools is already implemented,
so this commit adds IP version checks for other IP fields.

Change-Id: Ic02f5a1fd8ec4c1c363599c906ba0c818dd22268
quantum/db/db_base_plugin_v2.py
quantum/tests/unit/metaplugin/test_metaplugin.py
quantum/tests/unit/test_db_plugin.py