VRP: Discovery improvement for optical power + Mib upgrade (#9225)

* Huawei Mib file update

* VRP: Improve sensor discovery for optical equipment

* VRP: Improve sensor discovery for optical equipment

* VRP: Adding Test data after sensor dbm update
This commit is contained in:
PipoCanaja
2018-09-19 17:00:11 +02:00
committed by Tony Murray
parent 85f78e76e4
commit 41cc344106
97 changed files with 230842 additions and 92050 deletions

View File

@@ -1672,10 +1672,16 @@ function fahrenheit_to_celsius($value, $scale = 'fahrenheit')
return sprintf('%.02f', $value);
}
/**
* Converts uW to dBm
* $value must be positive
*
*/
function uw_to_dbm($value)
{
return 10 * log10($value / 1000);
}
/**
* @param $value
* @param null $default