From 75a382ae75e3ea5b2d0011572acc125a16dd81b1 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Sun, 19 Apr 2020 10:34:10 +0200 Subject: {pppoe,ipoe}-server: T2324: T2314: migrate CoA server --- src/migration-scripts/pppoe-server/2-to-3 | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/migration-scripts/pppoe-server/2-to-3') diff --git a/src/migration-scripts/pppoe-server/2-to-3 b/src/migration-scripts/pppoe-server/2-to-3 index 28b1e33e4..fa6ef02da 100755 --- a/src/migration-scripts/pppoe-server/2-to-3 +++ b/src/migration-scripts/pppoe-server/2-to-3 @@ -74,6 +74,18 @@ else: if config.exists(radius_settings): config.rename(radius_settings, 'radius') + # Migrate RADIUS dynamic author / change of authorisation server + dae_old = base + ['authentication', 'radius', 'dae-server'] + if config.exists(dae_old): + config.rename(dae_old, 'dynamic-author') + dae_new = base + ['authentication', 'radius', 'dynamic-author'] + + if config.exists(dae_new + ['ip-address']): + config.rename(dae_new + ['ip-address'], 'server') + + if config.exists(dae_new + ['secret']): + config.rename(dae_new + ['secret'], 'key') + # Migrate RADIUS server radius_server = base + ['authentication', 'radius-server'] if config.exists(radius_server): -- cgit v1.2.3