]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Avoid dhcp_release for ipv6 addresses
authorsridhargaddam <sridhar.gaddam@enovance.com>
Wed, 5 Aug 2015 10:49:33 +0000 (10:49 +0000)
committersridhargaddam <sridhar.gaddam@enovance.com>
Mon, 10 Aug 2015 08:31:48 +0000 (08:31 +0000)
commit633c52cca1b383af2c900e1663c8682114acd177
treee9ed5f1b03ebe7cc2467641918c7616903e81544
parentbbfd5cf486068badd9a588cb8eda61972337fd77
Avoid dhcp_release for ipv6 addresses

dhcp_release is only supported for IPv4 addresses [1] and not for
IPv6 addresses [2]. There will be no effect when it is called with
IPv6 address. This patch adds a corresponding note and avoids calling
dhcp_release for IPv6 addresses.

[1] http://manpages.ubuntu.com/manpages/trusty/man1/dhcp_release.1.html
[2] http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/2013q2/007084.html

Change-Id: I8b8316c9d3d011c2a687a3a1e2a4da5cf1b5d604
neutron/agent/linux/dhcp.py
neutron/tests/unit/agent/linux/test_dhcp.py