]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Check supported subnet CIDR
authorshihanzhang <shihanzhang@huawei.com>
Mon, 21 Sep 2015 07:38:28 +0000 (15:38 +0800)
committershihanzhang <shihanzhang@huawei.com>
Tue, 29 Sep 2015 02:51:12 +0000 (10:51 +0800)
commite31e2f38fc2c8ec32c46f9a5280e00b4d1dc846a
treeb734bf240b61b58f635532e32999507d94401051
parentf4ff2a041b17d9621d80cc613dc4b2afe1697b03
Check supported subnet CIDR

For IP CIDR, D class is for multicast, but neutron does not
check this, if user create a subnet like '224.0.0.1/16', DHCP
agent will fail to spawn Dnsmasq service.
This patch adds a check, if subnet CIDR is D class or loopback,
neutron-server will raise a error.

APIImpact
DocImpact

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