summaryrefslogtreecommitdiff
path: root/schema
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@vyos.io>2020-04-23 16:25:08 +0300
committerDaniil Baturin <daniil@vyos.io>2020-04-23 16:25:08 +0300
commit1ca8fc0b3f75d63f0751305d8d2d6e6a5f72c5e3 (patch)
tree8d82f38dd2ffbfe34159c587303a0393dbc3221e /schema
parent23df7869d29ec574b22b5d793f215e6f62084dfd (diff)
downloadvyos-1x-1ca8fc0b3f75d63f0751305d8d2d6e6a5f72c5e3.tar.gz
vyos-1x-1ca8fc0b3f75d63f0751305d8d2d6e6a5f72c5e3.zip
T2129: allow top level tag nodes in op mode definitions.
Diffstat (limited to 'schema')
-rw-r--r--schema/op-mode-definition.rnc2
-rw-r--r--schema/op-mode-definition.rng5
2 files changed, 5 insertions, 2 deletions
diff --git a/schema/op-mode-definition.rnc b/schema/op-mode-definition.rnc
index 804ab3596..cbe51e6dc 100644
--- a/schema/op-mode-definition.rnc
+++ b/schema/op-mode-definition.rnc
@@ -24,7 +24,7 @@
# Interface definition starts with interfaceDefinition tag that may contain node tags
start = element interfaceDefinition
{
- node*
+ (node | tagNode)*
}
# node tag may contain node, leafNode, or tagNode tags
diff --git a/schema/op-mode-definition.rng b/schema/op-mode-definition.rng
index e9e7887cf..900f41e27 100644
--- a/schema/op-mode-definition.rng
+++ b/schema/op-mode-definition.rng
@@ -29,7 +29,10 @@
<start>
<element name="interfaceDefinition">
<zeroOrMore>
- <ref name="node"/>
+ <choice>
+ <ref name="node"/>
+ <ref name="tagNode"/>
+ </choice>
</zeroOrMore>
</element>
</start>