I need help to test for routerOS version. Since 7.10xxx user the new time format, how do I test for 7.10 or newer.
7.8 no
6.49 no
7.1 no
7.10beta5 yes
7.10rc1 yes
7.24 yes
8.1beta22 ok
Tried to extract the routerOS version, but not sure how to make a regex true that will work on all version.
It has been simpler if 7.1 was named 7.01
tonum does not work with decimal.
This just removes the first dot
[
:local ver [/system resource get version]
:local dot [:find $ver "."]
:local new "$[:pick $ver 0 $dot]$[:pic $ver ($dot + 1) 99]"
:put $new
]
This gives 710beta5 (development)
I can remove beta5... using a for each loop, but still how to test against 710 and not get error with 71 (fail) vs 711 (ok)
There mest be a simpler way to do this?