]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Allow CIDRs with non-zero masked portions
authorKevin Benton <blak111@gmail.com>
Tue, 18 Mar 2014 00:06:46 +0000 (17:06 -0700)
committerKevin Benton <blak111@gmail.com>
Wed, 19 Mar 2014 02:07:12 +0000 (19:07 -0700)
commit39c04fdc2c94b8ee48600f3148c5f850645b7c4e
treeae9dd28970c7e5550d0a7f9ebf065579835d5403
parent903aa84ff98efb675e1d4e7af464d1df9f7f01ea
Allow CIDRs with non-zero masked portions

Allow users to specify CIDRs with bits other
than zeros in the masked portion of the subnet.
e.g. 192.168.1.5/24 is accepted and converted
to 192.168.1.0/24.

Closes-Bug: #1204173
Change-Id: I7ddff41e6988feb6e2a87e40a4d99db7174415b1
neutron/api/v2/attributes.py
neutron/db/db_base_plugin_v2.py
neutron/tests/unit/test_attributes.py
neutron/tests/unit/test_db_plugin.py