From fed3245aef5333e535d10cca976a3d09a8760446 Mon Sep 17 00:00:00 2001 From: DmitriyEshenko Date: Mon, 28 Sep 2020 07:41:19 +0000 Subject: pppoe-server: T2919: Add possibility change Called-Station-Id format --- src/conf_mode/service_pppoe-server.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/conf_mode/service_pppoe-server.py b/src/conf_mode/service_pppoe-server.py index a4e937b1a..9935b166f 100755 --- a/src/conf_mode/service_pppoe-server.py +++ b/src/conf_mode/service_pppoe-server.py @@ -82,6 +82,7 @@ default_config_data = { 'radius_shaper_attr': '', 'radius_shaper_vendor': '', 'radius_dynamic_author': '', + 'radius_called_sid_format': '', 'sesscrtl': 'replace', 'snmp': False, 'thread_cnt': get_half_cpus() @@ -315,6 +316,9 @@ def get_config(config=None): pppoe['radius_dynamic_author'] = dae + if conf.exists(['called-sid-format']): + pppoe['radius_called_sid_format'] = conf.return_value(['called-sid-format']) + # RADIUS based rate-limiter if conf.exists(['rate-limit', 'enable']): pppoe['radius_shaper_attr'] = 'Filter-Id' -- cgit v1.2.3