summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@baturin.org>2018-11-19 21:07:37 +0100
committerDaniil Baturin <daniil@baturin.org>2018-11-19 21:08:08 +0100
commitb1435a7ad210135ef15038be384b7e2474ebb923 (patch)
tree99792d2957b441c934e79bdd37b58fb15cdd14eb
parentb59d7cecb65b0502a121c985695754fc9ff75c01 (diff)
downloadvyos-1x-b1435a7ad210135ef15038be384b7e2474ebb923.tar.gz
vyos-1x-b1435a7ad210135ef15038be384b7e2474ebb923.zip
T835: add missing call to write_chap_secrets() to generate()
-rwxr-xr-xsrc/conf_mode/accel_pppoe.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/conf_mode/accel_pppoe.py b/src/conf_mode/accel_pppoe.py
index 0ef22110f..d110f51e1 100755
--- a/src/conf_mode/accel_pppoe.py
+++ b/src/conf_mode/accel_pppoe.py
@@ -514,6 +514,9 @@ def generate(c):
open(pppoe_conf,'w').write(config_text)
sl.syslog(sl.LOG_NOTICE, pppoe_config + ' written')
+ if c['authentication']['local-users']:
+ write_chap_secrets(c)
+
return c
def apply(c):