summaryrefslogtreecommitdiff
path: root/src/conf_mode/interfaces-pseudo-ethernet.py
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-05-19 21:27:43 +0200
committerChristian Poessinger <christian@poessinger.com>2020-05-19 21:27:43 +0200
commitba06bfed4fc84b699689932eeb3af9b9be0f5cd7 (patch)
tree8dc39b8e3adc90e080226e142c5423e4f8c88e0e /src/conf_mode/interfaces-pseudo-ethernet.py
parente62218c87a99e8500f0ff0925c349db9efade262 (diff)
downloadvyos-1x-ba06bfed4fc84b699689932eeb3af9b9be0f5cd7.tar.gz
vyos-1x-ba06bfed4fc84b699689932eeb3af9b9be0f5cd7.zip
dhcpv6-pd: T421: support ethernet based interfaces
Add support for prefix delegation when receiving the prefix via ethernet, bridge, bond, wireless.
Diffstat (limited to 'src/conf_mode/interfaces-pseudo-ethernet.py')
-rwxr-xr-xsrc/conf_mode/interfaces-pseudo-ethernet.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/conf_mode/interfaces-pseudo-ethernet.py b/src/conf_mode/interfaces-pseudo-ethernet.py
index b2f78bcc4..3e036a753 100755
--- a/src/conf_mode/interfaces-pseudo-ethernet.py
+++ b/src/conf_mode/interfaces-pseudo-ethernet.py
@@ -171,6 +171,9 @@ def apply(peth):
if peth['dhcpv6_temporary']:
p.dhcp.v6.options['dhcpv6_temporary'] = True
+ if peth['dhcpv6_pd']:
+ p.dhcp.v6.options['dhcpv6_pd'] = peth['dhcpv6_pd']
+
# ignore link state changes
p.set_link_detect(peth['disable_link_detect'])
# configure ARP cache timeout in milliseconds