summaryrefslogtreecommitdiff
path: root/interface-definitions
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-03-24 20:32:31 +0100
committerMergify <37929162+mergify[bot]@users.noreply.github.com>2024-03-24 19:36:45 +0000
commita7d4ca9f242cb74088303dc76ba148fa12521a8f (patch)
tree5fbd08abae25b789810aa97382b89f64a2c333a0 /interface-definitions
parent810ad5c718d685e0835b91eea17b5cf90b96fb5f (diff)
downloadvyos-1x-a7d4ca9f242cb74088303dc76ba148fa12521a8f.tar.gz
vyos-1x-a7d4ca9f242cb74088303dc76ba148fa12521a8f.zip
container: T6062: add image name completion helper
(cherry picked from commit 37a4fdf229a7ab74718655f1d6e35fd94e5ad69a)
Diffstat (limited to 'interface-definitions')
-rw-r--r--interface-definitions/container.xml.in15
1 files changed, 14 insertions, 1 deletions
diff --git a/interface-definitions/container.xml.in b/interface-definitions/container.xml.in
index f0db8a6f2..d48ebf966 100644
--- a/interface-definitions/container.xml.in
+++ b/interface-definitions/container.xml.in
@@ -128,7 +128,17 @@
</leafNode>
<leafNode name="image">
<properties>
- <help>Image name in the hub-registry</help>
+ <help>Container image to use</help>
+ <completionHelp>
+ <script>sudo podman image list --format "{{.Repository}}:{{.Tag}}"</script>
+ </completionHelp>
+ <valueHelp>
+ <format>txt</format>
+ <description>Image name in the hub-registry</description>
+ </valueHelp>
+ <constraint>
+ <regex>[[:ascii:]]{1,255}</regex>
+ </constraint>
</properties>
</leafNode>
<leafNode name="command">
@@ -165,6 +175,9 @@
<format>txt</format>
<description>Set label option value</description>
</valueHelp>
+ <constraint>
+ <regex>[[:ascii:]]{1,255}</regex>
+ </constraint>
</properties>
</leafNode>
</children>