From c2dcf10b28a19301a77d8043e6175b899765abf3 Mon Sep 17 00:00:00 2001 From: sever-sever Date: Sat, 26 Sep 2020 12:13:50 +0000 Subject: accel-ppp: T2917: Add Preallocate NAS-port-id --- src/conf_mode/service_pppoe-server.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/conf_mode/service_pppoe-server.py') diff --git a/src/conf_mode/service_pppoe-server.py b/src/conf_mode/service_pppoe-server.py index 45d3806d5..de15ca879 100755 --- a/src/conf_mode/service_pppoe-server.py +++ b/src/conf_mode/service_pppoe-server.py @@ -69,6 +69,7 @@ default_config_data = { 'ppp_min_mtu': '', 'ppp_mppe': 'prefer', 'ppp_mru': '', + 'ppp_preallocate_vif': False, 'radius_server': [], 'radius_acct_tmo': '3', @@ -285,6 +286,9 @@ def get_config(config=None): if conf.exists(['nas-ip-address']): pppoe['radius_nas_ip'] = conf.return_value(['nas-ip-address']) + if conf.exists(['preallocate-vif']): + pppoe['ppp_preallocate_vif'] = True + if conf.exists(['source-address']): pppoe['radius_source_address'] = conf.return_value(['source-address']) -- cgit v1.2.3