]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Subnets with prefix length 0 are invalid
authorSalvatore Orlando <salv.orlando@gmail.com>
Thu, 28 Aug 2014 21:54:18 +0000 (14:54 -0700)
committerSalvatore Orlando <salv.orlando@gmail.com>
Fri, 29 Aug 2014 19:16:05 +0000 (12:16 -0700)
commitf2aa93767ece248d8efadc9b3507e233044aa316
tree3a205429692689980eeac65e17812b08fb141dbf
parentfed5dcf5eef78669e30995f4af7a4be94829881b
Subnets with prefix length 0 are invalid

This patch changes the API behaviour to return a 400 error
when a subnet with /0 prefix length is specified.

This kind of subnet hardly make any sense, and also cannot
possibly work when DHCP is enabled.

Change-Id: I8f822f14b91475dcf86ea44ee607013e61cbb6f7
Closes-Bug: #1362651
neutron/db/db_base_plugin_v2.py
neutron/tests/unit/test_db_plugin.py