From 0cdfa72d5ccd8a2d382164a1ec39865802d1be7c Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Tue, 26 May 2020 17:07:39 +0200 Subject: dhcpv6-pd: ethernet: T421: fix TypeError Copy/paste error resulting in: Traceback (most recent call last): File "/usr/libexec/vyos/conf_mode/interfaces-ethernet.py", line 303, in apply(c) File "/usr/libexec/vyos/conf_mode/interfaces-ethernet.py", line 205, in apply e.dhcp.v6.options['dhcpv6_pd'] = e['dhcpv6_pd'] TypeError: 'EthernetIf' object is not subscriptable --- src/conf_mode/interfaces-ethernet.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/conf_mode') diff --git a/src/conf_mode/interfaces-ethernet.py b/src/conf_mode/interfaces-ethernet.py index f45a77a3e..0d73a30f1 100755 --- a/src/conf_mode/interfaces-ethernet.py +++ b/src/conf_mode/interfaces-ethernet.py @@ -202,7 +202,7 @@ def apply(eth): e.dhcp.v6.options['dhcpv6_temporary'] = True if eth['dhcpv6_pd']: - e.dhcp.v6.options['dhcpv6_pd'] = e['dhcpv6_pd'] + e.dhcp.v6.options['dhcpv6_pd'] = eth['dhcpv6_pd'] # ignore link state changes e.set_link_detect(eth['disable_link_detect']) -- cgit v1.2.3