]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
dhcp: handle advertise_mtu=True when plugin does not set mtu values
authorIhar Hrachyshka <ihrachys@redhat.com>
Thu, 14 Jan 2016 15:06:20 +0000 (16:06 +0100)
committerIhar Hrachyshka <ihrachys@redhat.com>
Fri, 15 Jan 2016 08:40:41 +0000 (08:40 +0000)
commit36effd66006aaf078cf652de146f35f19f56bdca
treeb2000fffd303e8b5a856ae6096096ea53714d861
parent2c599814fbf7f13504218000c07de81eb6f25f5a
dhcp: handle advertise_mtu=True when plugin does not set mtu values

DHCP agent may be used by plugins that don't set mtu value for networks.
Handle the case by not passing the DHCP option when network does not
have the value set.

Most plugins do set the value though, since it's enforced in base db
plugin class.

Closes-Bug: #1534197
Change-Id: I282b3d6b81f91eb8cea901d955cbcca6ecb2a95d
neutron/agent/linux/dhcp.py
neutron/tests/unit/agent/linux/test_dhcp.py