]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Validate IPv6 modes in API when IP version is 4
authorXuhan Peng <xuhanp@cn.ibm.com>
Tue, 15 Apr 2014 03:12:16 +0000 (11:12 +0800)
committerXuhan Peng <xuhanp@cn.ibm.com>
Fri, 18 Apr 2014 02:19:47 +0000 (10:19 +0800)
commit239d0378a23a64ea1d374becc4724ab1603157dc
tree339fde53c54c5be973dc7272eabf3b82f5b58fdd
parent5ec4ec5e57375bdb4acdb064550a8a5b00f970f8
Validate IPv6 modes in API when IP version is 4

Add a validation to ipv6_ra_mode and ipv6_address_mode with ip
version. An InvalidInput error is prompted when ipv6_ra_mode
or ipv6_address_mode is specified in subnet create and update
API and ip version is 4.

Change-Id: I9a0356f23e6b162c31f2d289a34f4bd261cee91e
Closes-Bug: 1307788
neutron/db/db_base_plugin_v2.py
neutron/tests/unit/test_db_plugin.py