diff options
author | Christian Hesse <mail@eworm.de> | 2023-07-15 22:05:47 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2023-07-15 22:05:47 +0200 |
commit | be97de3627f2fa098931d525945114f712ddae71 (patch) | |
tree | 122e12ab9b5e86dee16d07d07100cbd35f859936 /check-routeros-update.rsc | |
parent | fbf55292a4fa15cbd06490b66509884f62f78dbc (diff) |
check-routeros-update: also match platform for neighbors
Diffstat (limited to 'check-routeros-update.rsc')
-rw-r--r-- | check-routeros-update.rsc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/check-routeros-update.rsc b/check-routeros-update.rsc index c46dc7d..b328d4c 100644 --- a/check-routeros-update.rsc +++ b/check-routeros-update.rsc @@ -80,7 +80,7 @@ $LogPrintExit2 debug $0 ("Checking for updates...") false; $DoUpdate; } - :if ($SafeUpdateNeighbor = true && [ :len [ /ip/neighbor/find where \ + :if ($SafeUpdateNeighbor = true && [ :len [ /ip/neighbor/find where platform="MikroTik" \ version~("^" . [ $EscapeForRegEx ($Update->"latest-version" . " (" . $Update->"channel" . ")") ]) ] ] > 0) do={ $LogPrintExit2 info $0 ("Seen a neighbor running version " . $Update->"latest-version" . ", updating...") false; $SendNotification2 ({ origin=$0; \ |