diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-04-19 10:34:10 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2020-04-19 10:34:21 +0200 |
commit | 75a382ae75e3ea5b2d0011572acc125a16dd81b1 (patch) | |
tree | 09d477647da254a8f8c3316c24beee7984759aa6 /src/migration-scripts/ipoe-server | |
parent | b2af248ff2c63ac08ef7b9f01fdcec023c815086 (diff) | |
download | vyos-1x-75a382ae75e3ea5b2d0011572acc125a16dd81b1.tar.gz vyos-1x-75a382ae75e3ea5b2d0011572acc125a16dd81b1.zip |
{pppoe,ipoe}-server: T2324: T2314: migrate CoA server
Diffstat (limited to 'src/migration-scripts/ipoe-server')
-rwxr-xr-x | src/migration-scripts/ipoe-server/0-to-1 | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/migration-scripts/ipoe-server/0-to-1 b/src/migration-scripts/ipoe-server/0-to-1 index 0a8b4a5c7..2e36ab378 100755 --- a/src/migration-scripts/ipoe-server/0-to-1 +++ b/src/migration-scripts/ipoe-server/0-to-1 @@ -65,6 +65,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): |