diff options
author | Christian Poessinger <christian@poessinger.com> | 2023-01-02 12:12:35 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-02 12:12:35 +0100 |
commit | 2e3644593d8991d2e9b5c26bfddfab362287dee2 (patch) | |
tree | caf60365d8516067e4dbc802ee572d2df5c5d01e /src | |
parent | b13355926c394742678446fd932ebfab5152a256 (diff) | |
parent | e471707ccff74c1bf500a43b5dfc47ffcf944644 (diff) | |
download | vyos-1x-2e3644593d8991d2e9b5c26bfddfab362287dee2.tar.gz vyos-1x-2e3644593d8991d2e9b5c26bfddfab362287dee2.zip |
Merge pull request #1725 from sever-sever/T4893
T4893: Add ppp-options ipv6-interface-id for L2TP
Diffstat (limited to 'src')
-rwxr-xr-x | src/conf_mode/vpn_l2tp.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/conf_mode/vpn_l2tp.py b/src/conf_mode/vpn_l2tp.py index 27e78db99..65623c2b1 100755 --- a/src/conf_mode/vpn_l2tp.py +++ b/src/conf_mode/vpn_l2tp.py @@ -58,6 +58,9 @@ default_config_data = { 'ppp_echo_failure' : '3', 'ppp_echo_interval' : '30', 'ppp_echo_timeout': '0', + 'ppp_ipv6_accept_peer_intf_id': False, + 'ppp_ipv6_intf_id': None, + 'ppp_ipv6_peer_intf_id': None, 'radius_server': [], 'radius_acct_inter_jitter': '', 'radius_acct_tmo': '3', @@ -314,6 +317,15 @@ def get_config(config=None): if conf.exists(['ppp-options', 'ipv6']): l2tp['ppp_ipv6'] = conf.return_value(['ppp-options', 'ipv6']) + if conf.exists(['ppp-options', 'ipv6-accept-peer-intf-id']): + l2tp['ppp_ipv6_accept_peer_intf_id'] = True + + if conf.exists(['ppp-options', 'ipv6-intf-id']): + l2tp['ppp_ipv6_intf_id'] = conf.return_value(['ppp-options', 'ipv6-intf-id']) + + if conf.exists(['ppp-options', 'ipv6-peer-intf-id']): + l2tp['ppp_ipv6_peer_intf_id'] = conf.return_value(['ppp-options', 'ipv6-peer-intf-id']) + return l2tp |