]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Do not add DHCP info to subnet if DHCP is disabled
authorJoe Mills <joe@midokura.com>
Wed, 25 Sep 2013 08:43:30 +0000 (08:43 +0000)
committerGerrit Code Review <review@openstack.org>
Fri, 22 Nov 2013 02:15:36 +0000 (02:15 +0000)
commit2a55196c1dcf35932459ea0f8df047c2ead4d615
treee252f4d783f9782d01b03989eb35257112bff250
parent67f4c6c3f578dfcc3e831b4d618de235d3e60287
Do not add DHCP info to subnet if DHCP is disabled

Currently the midonet plugin will add default DHCP information to
each subnet even if the subnet is configured to have DHCP disabled.
This change addresses this by checking the DHCP settings while
creating a subnet, and only adding DHCP information if DHCP is
enabled.

Closes-bug #1230073

Change-Id: I2c422866c60f505df30bfa18bfe8d03599665b7a
neutron/plugins/midonet/plugin.py
neutron/tests/unit/midonet/test_midonet_plugin.py