RouterOS runtime quirk on first discovery (#14945)

(assume version is > 6.47 if it isn't fetched yet)

fixes #14935
This commit is contained in:
Tony Murray
2023-04-06 21:09:31 -05:00
committed by GitHub
parent df31be30c1
commit 8809779b82

View File

@@ -799,7 +799,7 @@ function get_device_divisor($device, $os_version, $sensor_type, $oid)
}
if (Str::startsWith($oid, '.1.3.6.1.2.1.33.1.2.3.')) {
if ($device['os'] == 'routeros' && version_compare($device['version'], '6.47', '<')) {
if ($device['os'] == 'routeros' && $device['version'] && version_compare($device['version'], '6.47', '<')) {
return 60;
}