From 12d4bd8f7edc3f5aa89e1a752fca088f585430d1 Mon Sep 17 00:00:00 2001 From: Adrien Banlin Date: Fri, 25 Mar 2022 12:34:02 +0100 Subject: [PATCH] networkinterfaces: dad attrs placement behavior Fix the dad-attempts and dad-interval placement behavior to be linked against it's related address. --- ifupdown2/ifupdown/networkinterfaces.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ifupdown2/ifupdown/networkinterfaces.py b/ifupdown2/ifupdown/networkinterfaces.py index c49e68b..56fa281 100644 --- a/ifupdown2/ifupdown/networkinterfaces.py +++ b/ifupdown2/ifupdown/networkinterfaces.py @@ -234,7 +234,7 @@ class networkInterfaces(): except Exception: pass attrvallist = iface_config.get(newattrname, []) - if newattrname in ['scope', 'netmask', 'broadcast', 'preferred-lifetime']: + if newattrname in ['scope', 'netmask', 'broadcast', 'preferred-lifetime', 'dad-attempts', 'dad-interval']: # For attributes that are related and that can have multiple # entries, store them at the same index as their parent attribute. # The example of such attributes is 'address' and its related