summaryrefslogtreecommitdiff
path: root/scripts/import-conf-mode-commands
diff options
context:
space:
mode:
authorAntonio Cuñat Alario <toni@cunyat.net>2019-12-10 18:36:58 +0100
committerAntonio Cuñat Alario <toni@cunyat.net>2019-12-10 18:36:58 +0100
commit4f09f8a0d32f76b60e548800b31a2bb58c10a95b (patch)
tree89aa00111df148a50031c07993531d724390995d /scripts/import-conf-mode-commands
parent9080dda455052203c5b53d9d1f8bf08156c9af51 (diff)
downloadvyos-1x-4f09f8a0d32f76b60e548800b31a2bb58c10a95b.tar.gz
vyos-1x-4f09f8a0d32f76b60e548800b31a2bb58c10a95b.zip
scripts: import: T1836: fix XML export
Fix export xml interfaces from node.def where node.tad doesn't have a node.def file
Diffstat (limited to 'scripts/import-conf-mode-commands')
-rwxr-xr-xscripts/import-conf-mode-commands2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/import-conf-mode-commands b/scripts/import-conf-mode-commands
index 4bdd5ee03..3980b0cf4 100755
--- a/scripts/import-conf-mode-commands
+++ b/scripts/import-conf-mode-commands
@@ -74,7 +74,7 @@ def walk(tree, base_path, name):
# Tag node dirs will always have 'node.tag' subdir and 'node.def' file
# Leaf node dirs have nothing but a 'node.def' file
# Everything that doesn't match either of these patterns is a normal node
- if contents == ['node.tag', 'node.def']:
+ if 'node.tag' in contents:
print("Creating a tag node from {0}".format(path))
elem = etree.Element('tagNode')
node_type = TAG_NODE