summaryrefslogtreecommitdiff
path: root/schema
diff options
context:
space:
mode:
authorerkin <me@erkin.party>2023-11-20 08:01:59 +0300
committererkin <me@erkin.party>2024-01-25 17:38:55 +0300
commitb76e4c808c954dcf498b510aaa9c8d6c91850991 (patch)
tree00ce70d54f94ec03e42c34458404c8bc7220b658 /schema
parent59b432b97e361f3f5670302f51881ee596afe2f8 (diff)
downloadvyos-1x-b76e4c808c954dcf498b510aaa9c8d6c91850991.tar.gz
vyos-1x-b76e4c808c954dcf498b510aaa9c8d6c91850991.zip
op-mode: T4038: Python rewrite of image tools
Diffstat (limited to 'schema')
-rw-r--r--schema/op-mode-definition.rnc8
-rw-r--r--schema/op-mode-definition.rng5
2 files changed, 10 insertions, 3 deletions
diff --git a/schema/op-mode-definition.rnc b/schema/op-mode-definition.rnc
index cbe51e6dc..ad41700b9 100644
--- a/schema/op-mode-definition.rnc
+++ b/schema/op-mode-definition.rnc
@@ -95,13 +95,15 @@ command = element command
# completionHelp tags contain information about allowed values of a node that is used for generating
# tab completion in the CLI frontend and drop-down lists in GUI frontends
-# It is only meaninful for leaf nodes
+# It is only meaningful for leaf nodes
# Allowed values can be given as a fixed list of values (e.g. <list>foo bar baz</list>),
# as a configuration path (e.g. <path>interfaces ethernet</path>),
-# or as a path to a script file that generates the list (e.g. <script>/usr/lib/foo/list-things</script>
+# as a path to a script file that generates the list (e.g. <script>/usr/lib/foo/list-things</script>,
+# or to enable built-in image path completion (<imagePath/>).
completionHelp = element completionHelp
{
(element list { text })* &
(element path { text })* &
- (element script { text })*
+ (element script { text })* &
+ (element imagePath { empty })?
}
diff --git a/schema/op-mode-definition.rng b/schema/op-mode-definition.rng
index 900f41e27..a255aeb73 100644
--- a/schema/op-mode-definition.rng
+++ b/schema/op-mode-definition.rng
@@ -162,6 +162,11 @@
<text/>
</element>
</zeroOrMore>
+ <optional>
+ <element name="imagePath">
+ <empty/>
+ </element>
+ </optional>
</interleave>
</element>
</define>