From 63a8d17b89597e990e44f5b0111419778917e689 Mon Sep 17 00:00:00 2001 From: Christian Breunig Date: Fri, 11 Aug 2023 22:24:05 +0200 Subject: ipv6: T5464: use proper XML default for DAD transmits This is only a cosmetic change so that the default value is properly retrieved from the defaultValue XML node. --- python/vyos/ifconfig/interface.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'python') diff --git a/python/vyos/ifconfig/interface.py b/python/vyos/ifconfig/interface.py index 75c5f27a9..6e85b7a9d 100644 --- a/python/vyos/ifconfig/interface.py +++ b/python/vyos/ifconfig/interface.py @@ -1553,8 +1553,7 @@ class Interface(Control): # IPv6 Duplicate Address Detection (DAD) tries tmp = dict_search('ipv6.dup_addr_detect_transmits', config) - value = tmp if (tmp != None) else '1' - self.set_ipv6_dad_messages(value) + self.set_ipv6_dad_messages(tmp) # Delete old IPv6 EUI64 addresses before changing MAC for addr in (dict_search('ipv6.address.eui64_old', config) or []): -- cgit v1.2.3