From a8e73794ec421ad2bb0053214504f20a1dc3b21a Mon Sep 17 00:00:00 2001 From: Viacheslav Hletenko Date: Mon, 5 Sep 2022 18:35:39 +0000 Subject: 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) --- interface-definitions/include/url.xml.i | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 interface-definitions/include/url.xml.i (limited to 'interface-definitions/include') diff --git a/interface-definitions/include/url.xml.i b/interface-definitions/include/url.xml.i new file mode 100644 index 000000000..caa6f67bd --- /dev/null +++ b/interface-definitions/include/url.xml.i @@ -0,0 +1,15 @@ + + + + Remote URL + + url + Remote URL + + + ^https?:\/\/?[a-z0-9]+([\-\.]{1}[a-z0-9]+)*(\:[0-9]+)*(\/.*)? + + Incorrect URL format + + + -- cgit v1.2.3