summaryrefslogtreecommitdiff
path: root/op-mode-definitions/show-system.xml.in
diff options
context:
space:
mode:
authorViacheslav Hletenko <v.gletenko@vyos.io>2022-09-05 18:35:39 +0000
committerViacheslav Hletenko <v.gletenko@vyos.io>2022-09-07 14:54:35 +0000
commita8e73794ec421ad2bb0053214504f20a1dc3b21a (patch)
treedef1b03e7a364803f21239a39dff56a1238b563a /op-mode-definitions/show-system.xml.in
parent735767f09f891c438e43565f935b927e6f1b317d (diff)
downloadvyos-1x-a8e73794ec421ad2bb0053214504f20a1dc3b21a.tar.gz
vyos-1x-a8e73794ec421ad2bb0053214504f20a1dc3b21a.zip
update-check: T3476: Allow update-check for VyOS images
Ability to autocheck available new images Parse remote URL JSON image-version.json file and compare version VyOS with a local current version, if find diff sent wall message that the new image is available Also, add op-mode command to check images "show system image" With option "auto-check" check will be once per 12 hours set system update-check auto-check set system update-check url 'http://example.com/image-version.json' If new version is available shows it per login (MOTD)
Diffstat (limited to 'op-mode-definitions/show-system.xml.in')
-rw-r--r--op-mode-definitions/show-system.xml.in6
1 files changed, 6 insertions, 0 deletions
diff --git a/op-mode-definitions/show-system.xml.in b/op-mode-definitions/show-system.xml.in
index 60ed28b6f..51d3b702e 100644
--- a/op-mode-definitions/show-system.xml.in
+++ b/op-mode-definitions/show-system.xml.in
@@ -164,6 +164,12 @@
</properties>
<command>df -h -x squashfs</command>
</leafNode>
+ <leafNode name="updates">
+ <properties>
+ <help>Show system available updates</help>
+ </properties>
+ <command>${vyos_op_scripts_dir}/system.py show_update</command>
+ </leafNode>
<leafNode name="uptime">
<properties>
<help>Show system uptime and load averages</help>