summaryrefslogtreecommitdiff
path: root/src/migration-scripts/pppoe-server/2-to-3
diff options
context:
space:
mode:
Diffstat (limited to 'src/migration-scripts/pppoe-server/2-to-3')
-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())