summaryrefslogtreecommitdiff
path: root/interface-definitions/container.xml.in
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-03-24 20:35:40 +0100
committerGitHub <noreply@github.com>2024-03-24 20:35:40 +0100
commitd379dab2b9ae9490b45a2d42b319871258392385 (patch)
treeb0a191825af2025790f9fd6acf789be92fb22e12 /interface-definitions/container.xml.in
parent20e069d83b4c59978e5e82f48c2e7feb2c4da616 (diff)
parent37a4fdf229a7ab74718655f1d6e35fd94e5ad69a (diff)
downloadvyos-1x-d379dab2b9ae9490b45a2d42b319871258392385.tar.gz
vyos-1x-d379dab2b9ae9490b45a2d42b319871258392385.zip
Merge pull request #3182 from c-po/container-T6062
container: T6062: add image name completion helper
Diffstat (limited to 'interface-definitions/container.xml.in')
-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 d0af0900a..7e1f4811a 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>