diff options
author | Christian Poessinger <christian@poessinger.com> | 2019-12-25 17:51:29 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2019-12-26 14:05:52 +0100 |
commit | bc36bb5a9db4143696b96ab74eee40539de3541d (patch) | |
tree | ca9323f9d12c9501a657a6e69b87239098ef949c /src/migration-scripts/system/11-to-12 | |
parent | 1bf918791c5d39da7d93fe02dafc04e756559031 (diff) | |
download | vyos-1x-bc36bb5a9db4143696b96ab74eee40539de3541d.tar.gz vyos-1x-bc36bb5a9db4143696b96ab74eee40539de3541d.zip |
time-zone: T1906: migrate to XML/Python
The current node.def based implementtion should be migrated from
vyatta-cfg-system to vyos-1x. During the migration also provide a migration
script which transforms some ole timezones like "Los_Angeles" into a proper
IANA assigned timezone which should be "America/Los_Angeles".
Diffstat (limited to 'src/migration-scripts/system/11-to-12')
-rwxr-xr-x | src/migration-scripts/system/11-to-12 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/migration-scripts/system/11-to-12 b/src/migration-scripts/system/11-to-12 index 64425e2b9..0c92a0746 100755 --- a/src/migration-scripts/system/11-to-12 +++ b/src/migration-scripts/system/11-to-12 @@ -27,7 +27,7 @@ for host in config.list_nodes(cbase): if re.search(':[0-9]{1,5}$',host): h = re.search('^[a-zA-Z\-0-9\.]+', host).group(0) p = re.sub(':', '', re.search(':[0-9]+$', host).group(0)) - config.set(cbase + [h]) + config.set(cbase + [h]) config.set(cbase + [h, 'port'], value=p) for fac in config.list_nodes(cbase + [host, 'facility']): config.set(cbase + [h, 'facility', fac]) |