summaryrefslogtreecommitdiff
path: root/src/migration-scripts/interfaces/8-to-9
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-06-26 18:26:55 +0200
committerChristian Poessinger <christian@poessinger.com>2020-06-26 18:30:27 +0200
commit323445d7f11abb0e7c2b3c88ca631a732e62c369 (patch)
tree15c0598f14da3742606fe5ae733adb90ec0d20d4 /src/migration-scripts/interfaces/8-to-9
parent3c123dba16e4aeece5e920f03f832c6cd8ddf2e1 (diff)
downloadvyos-1x-323445d7f11abb0e7c2b3c88ca631a732e62c369.tar.gz
vyos-1x-323445d7f11abb0e7c2b3c88ca631a732e62c369.zip
migration: interfaces: T2622: fix pseudo-ethernet migration
By implementation misstake we exited the migrationscript if no VXLAN interface was found but this was wrong as the same loop is used on pseudo-ethernet interfaces. The Migrator previously only worked on pseudo-ethernet when also a VXLAN interface was present. This has been corrected.
Diffstat (limited to 'src/migration-scripts/interfaces/8-to-9')
-rwxr-xr-xsrc/migration-scripts/interfaces/8-to-94
1 files changed, 2 insertions, 2 deletions
diff --git a/src/migration-scripts/interfaces/8-to-9 b/src/migration-scripts/interfaces/8-to-9
index e0b9dd375..2d1efd418 100755
--- a/src/migration-scripts/interfaces/8-to-9
+++ b/src/migration-scripts/interfaces/8-to-9
@@ -16,7 +16,7 @@
# Rename link nodes to source-interface for the following interface types:
# - vxlan
-# - pseudo ethernet
+# - pseudo-ethernet
from sys import exit, argv
from vyos.configtree import ConfigTree
@@ -36,7 +36,7 @@ if __name__ == '__main__':
base = ['interfaces', if_type]
if not config.exists(base):
# Nothing to do
- exit(0)
+ continue
# list all individual interface isntance
for i in config.list_nodes(base):