summaryrefslogtreecommitdiff
path: root/op-mode-definitions
diff options
context:
space:
mode:
authorViacheslav Hletenko <v.gletenko@vyos.io>2023-12-30 13:59:07 +0000
committerViacheslav Hletenko <v.gletenko@vyos.io>2023-12-30 13:59:07 +0000
commit87202912e871eeafe20ba24c5fcbf696ce5171ff (patch)
tree5081b0f4ac1c9a1362f388fde8370f7e982a489d /op-mode-definitions
parent1e46cd606d9d87226fe0400bf3a53bda360808d8 (diff)
downloadvyos-1x-87202912e871eeafe20ba24c5fcbf696ce5171ff.tar.gz
vyos-1x-87202912e871eeafe20ba24c5fcbf696ce5171ff.zip
T3476: Add option latest to add system image
Add option `latest` for op-mode command `add system image` If the update check is configured we can get the remote `latest` version from conrfgure URL ``` set system update-check url 'https://example.com/version.json' ``` This way we can use "latest" option for image update: ``` add system image latest ```
Diffstat (limited to 'op-mode-definitions')
-rw-r--r--op-mode-definitions/system-image.xml.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/op-mode-definitions/system-image.xml.in b/op-mode-definitions/system-image.xml.in
index c131087be..7b5260b4e 100644
--- a/op-mode-definitions/system-image.xml.in
+++ b/op-mode-definitions/system-image.xml.in
@@ -14,7 +14,7 @@
<properties>
<help>Add a new image to the system</help>
<completionHelp>
- <list>/path/to/vyos-image.iso "http://example.com/vyos-image.iso"</list>
+ <list>/path/to/vyos-image.iso "http://example.com/vyos-image.iso" latest</list>
</completionHelp>
</properties>
<command>sudo ${vyos_op_scripts_dir}/image_installer.py --action add --image-path "${4}"</command>