1
0
mirror of https://github.com/CumulusNetworks/ifupdown2.git synced 2024-05-06 15:54:50 +00:00

address: check interface exists before settling dad

This commit is contained in:
Adrien Banlin
2022-04-08 15:46:52 +02:00
parent eb6ad1f78a
commit 21a7bd2d91

View File

@ -1132,6 +1132,8 @@ class address(AddonWithIpBlackList, moduleBase):
# settle dad
if not self.ipv6_dad_handling_enabled:
return
if not self.cache.link_exists(ifaceobj.name):
return
ifname = ifaceobj.name
ifaceobjs = self._get_ifaceobjs(ifaceobj, ifaceobj_getfunc)
addr_supported, user_addrs_list = self.__get_ip_addr_with_attributes(ifaceobjs, ifname)