summaryrefslogtreecommitdiff
path: root/src/migration-scripts
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-04-18 12:20:11 +0200
committerChristian Poessinger <christian@poessinger.com>2020-04-18 13:25:08 +0200
commitcda566dfde944f705244f0b9a9293d1a47c55a50 (patch)
tree318046bb5e10c07a12df4ae3f1c459afe7f4d36b /src/migration-scripts
parentabcd7026efd8cbeb1c4db828788eda9a6dd2be41 (diff)
downloadvyos-1x-cda566dfde944f705244f0b9a9293d1a47c55a50.tar.gz
vyos-1x-cda566dfde944f705244f0b9a9293d1a47c55a50.zip
pppoe-server: T2314: migrate RADIUS configuration to common CLI syntax
Diffstat (limited to 'src/migration-scripts')
-rwxr-xr-xsrc/migration-scripts/pppoe-server/2-to-37
1 files changed, 7 insertions, 0 deletions
diff --git a/src/migration-scripts/pppoe-server/2-to-3 b/src/migration-scripts/pppoe-server/2-to-3
index c85ada904..977f1ef43 100755
--- a/src/migration-scripts/pppoe-server/2-to-3
+++ b/src/migration-scripts/pppoe-server/2-to-3
@@ -68,6 +68,13 @@ else:
config.delete(wins_base)
+ # Remove RADIUS server req-limit node
+ radius_base = base + ['authentication', 'radius']
+ if config.exists(radius_base):
+ for server in config.list_nodes(radius_base + ['server']):
+ if config.exists(radius_base + ['server', server, 'req-limit']):
+ config.delete(radius_base + ['server', server, 'req-limit'])
+
try:
with open(file_name, 'w') as f:
f.write(config.to_string())