diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-08-31 19:57:06 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2020-08-31 19:59:25 +0200 |
commit | 9c63731d6683f59ea784c08852ed38e3ac22794b (patch) | |
tree | cebb83f73174ca647fdb59bccb3a584d3b3670e5 /python/vyos/ifconfig/interface.py | |
parent | 621fcb078abb53888e995a007fb9ea31e95e34ab (diff) | |
download | vyos-1x-9c63731d6683f59ea784c08852ed38e3ac22794b.tar.gz vyos-1x-9c63731d6683f59ea784c08852ed38e3ac22794b.zip |
T2636: remove workarounds for get_config_dict()
Now that b40c52682a256 ("config: T2636: get_config_dict() returns a list on
multi node by default") is implemented the workarounds can be removed.
Diffstat (limited to 'python/vyos/ifconfig/interface.py')
-rw-r--r-- | python/vyos/ifconfig/interface.py | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/python/vyos/ifconfig/interface.py b/python/vyos/ifconfig/interface.py index 67ba973c4..ef2336c17 100644 --- a/python/vyos/ifconfig/interface.py +++ b/python/vyos/ifconfig/interface.py @@ -898,10 +898,6 @@ class Interface(Control): # configured addresses will be removed first new_addr = config.get('address', []) - # XXX: T2636 workaround: convert string to a list with one element - if isinstance(new_addr, str): - new_addr = [new_addr] - # always ensure DHCP client is stopped (when not configured explicitly) if 'dhcp' not in new_addr: self.del_addr('dhcp') @@ -1023,9 +1019,6 @@ class Interface(Control): # Add IPv6 EUI-based addresses tmp = vyos_dict_search('ipv6.address.eui64', config) if tmp: - # XXX: T2636 workaround: convert string to a list with one element - if isinstance(tmp, str): - tmp = [tmp] for addr in tmp: self.add_ipv6_eui64_address(addr) |