diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-04-03 14:27:18 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2020-04-03 14:27:18 +0200 |
commit | b9cdf13c0604730f2bf45fca9d3b5a8388796d1b (patch) | |
tree | 182e9bbc4bfa335783a9aad09edc3b87df678a1a /src | |
parent | 2fa8cf6598542e5bdf13e99da22435690252912b (diff) | |
download | vyos-1x-b9cdf13c0604730f2bf45fca9d3b5a8388796d1b.tar.gz vyos-1x-b9cdf13c0604730f2bf45fca9d3b5a8388796d1b.zip |
ipv6: T1831: add autoconf/eui64 addressing to interfaces
Diffstat (limited to 'src')
-rwxr-xr-x | src/conf_mode/interfaces-tunnel.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/conf_mode/interfaces-tunnel.py b/src/conf_mode/interfaces-tunnel.py index 4cbb51f4a..646e61c53 100755 --- a/src/conf_mode/interfaces-tunnel.py +++ b/src/conf_mode/interfaces-tunnel.py @@ -138,6 +138,9 @@ default_config_data = { 'ip': False, 'ipv6': False, 'nhrp': [], + 'ipv6_autoconf': 0, + 'ipv6_forwarding': 1, + 'ipv6_dad_transmits': 1, # internal 'tunnel': {}, # the following names are exactly matching the name @@ -183,6 +186,9 @@ mapping = { 'link_detect': ('disable-link-detect', False, 2), 'vrf': ('vrf', False, None), 'addresses-add': ('address', True, None), + 'ipv6_autoconf': ('ipv6 address autoconf', False, 1), + 'ipv6_forwarding': ('ipv6 disable-forwarding', False, 0), + 'ipv6_dad_transmits:': ('ipv6 dup-addr-detect-transmits', False, None) } def get_class (options): @@ -468,7 +474,8 @@ def apply(conf): tunnel.set_interface(option, options[option]) # set other interface properties - for option in ('alias', 'mtu', 'link_detect', 'multicast', 'allmulticast', 'vrf'): + for option in ('alias', 'mtu', 'link_detect', 'multicast', 'allmulticast', + 'vrf', 'ipv6_autoconf', 'ipv6_forwarding', 'ipv6_dad_transmits'): tunnel.set_interface(option, options[option]) # Configure interface address(es) |