mirror of
https://github.com/CumulusNetworks/ifupdown2.git
synced 2024-05-06 15:54:50 +00:00
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>
This commit is contained in:
@@ -572,7 +572,7 @@ class address(moduleBase):
|
||||
isloopback = self.ipcmd.link_isloopback(ifaceobjrunning.name)
|
||||
if isloopback:
|
||||
default_addrs = ['127.0.0.1/8', '::1/128']
|
||||
ifaceobjrunning.addr_family = 'inet'
|
||||
ifaceobjrunning.addr_family.append('inet')
|
||||
ifaceobjrunning.addr_method = 'loopback'
|
||||
else:
|
||||
default_addrs = []
|
||||
|
Reference in New Issue
Block a user