]> git.proxmox.com Git - mirror_ifupdown2.git/commit - addons/address.py
dhcp: add support for inet + inet6 dhcp on same interface
authorJulien Fortin <julien@cumulusnetworks.com>
Tue, 15 Nov 2016 17:33:07 +0000 (18:33 +0100)
committerJulien Fortin <julien@cumulusnetworks.com>
Wed, 23 Nov 2016 03:54:39 +0000 (04:54 +0100)
commit004d1e6585bc8170237e872a9c5c0ea08ab06310
tree22530ba068899f0ecf6f4d7e404dcea26b9ada5c
parent99b652303f9e380d0f195f4c3cc1a920c4688b35
dhcp: add support for inet + inet6 dhcp on same interface

Ticket: CM-12370
Reviewed By: Roopa, Kanna, Scott E
Testing Done:

This patch also fixes a problem where dhcp6 used to create lease file with
a trailing whitespace. dhcp6 operation were also sometimes using the wrong
pid file. I added some code in the debian.postinst script to correctly
rename these files if they exists when we install/update ifupdown2.

(cumulus-qa-infra/cl-tests/tests/smoke/testdhcp.py:Testdhcp_relay)
auto swp1
iface swp1 inet dhcp
      link-speed 10000
      link-duplex full
      link-autoneg off

auto swp1
iface swp1 inet6 dhcp

Signed-off-by: Julien Fortin <julien@cumulusnetworks.com>
addons/address.py
addons/dhcp.py
addons/usercmds.py
debian/ifupdown2.postinst
ifupdown/iface.py
ifupdown/networkinterfaces.py
ifupdownaddons/dhclient.py