summaryrefslogtreecommitdiff
path: root/src/migration-scripts
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-02-27 21:49:00 +0100
committerChristian Poessinger <christian@poessinger.com>2021-02-28 00:54:37 +0100
commit857294427afba3259e683f2360c735f0f4be32b6 (patch)
tree0f9a3af7320ce87a62eaaef62d89a1f6983015b4 /src/migration-scripts
parent582b718221c67ddb71e39fbad0a72241761304a9 (diff)
downloadvyos-1x-857294427afba3259e683f2360c735f0f4be32b6.tar.gz
vyos-1x-857294427afba3259e683f2360c735f0f4be32b6.zip
tunnel: T3366: rename remote-ip to remote
Streamline the CLI configuration where we try to use remote on other interfaces like vxlan, geneve.
Diffstat (limited to 'src/migration-scripts')
-rwxr-xr-xsrc/migration-scripts/interfaces/19-to-205
1 files changed, 5 insertions, 0 deletions
diff --git a/src/migration-scripts/interfaces/19-to-20 b/src/migration-scripts/interfaces/19-to-20
index 1727ac4dc..ed2780b92 100755
--- a/src/migration-scripts/interfaces/19-to-20
+++ b/src/migration-scripts/interfaces/19-to-20
@@ -37,6 +37,7 @@ if __name__ == '__main__':
#
# Migrate "interface tunnel <tunX> encapsulation gre-bridge" to gretap
# Migrate "interface tunnel <tunX> local-ip" to source-address
+ # Migrate "interface tunnel <tunX> remote-ip" to remote
for interface in config.list_nodes(base):
encap_path = base + [interface, 'encapsulation']
if config.exists(encap_path):
@@ -48,6 +49,10 @@ if __name__ == '__main__':
if config.exists(local_ip_path):
config.rename(local_ip_path, 'source-address')
+ remote_ip_path = base + [interface, 'remote-ip']
+ if config.exists(remote_ip_path):
+ config.rename(remote_ip_path, 'remote')
+
try:
with open(file_name, 'w') as f:
f.write(config.to_string())