summaryrefslogtreecommitdiff
path: root/src/conf_mode/interfaces-ethernet.py
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-05-26 17:07:39 +0200
committerChristian Poessinger <christian@poessinger.com>2020-05-26 17:07:41 +0200
commit0cdfa72d5ccd8a2d382164a1ec39865802d1be7c (patch)
tree2bafb3a668ef23d103eaa52b84a251252d7337a1 /src/conf_mode/interfaces-ethernet.py
parent76d87858be1fc2a261f7bc94d915c08b47b49e92 (diff)
downloadvyos-1x-0cdfa72d5ccd8a2d382164a1ec39865802d1be7c.tar.gz
vyos-1x-0cdfa72d5ccd8a2d382164a1ec39865802d1be7c.zip
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 <module> 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
Diffstat (limited to 'src/conf_mode/interfaces-ethernet.py')
-rwxr-xr-xsrc/conf_mode/interfaces-ethernet.py2
1 files changed, 1 insertions, 1 deletions
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'])