Junos dwdm interface sensor support (#7714)

* Junos dwdm interface sensor support  …
  four new sensors
    Chromatic Dispersion ps/nm
    Delay s (seconds)
    Q_factor (dB)
    preFEC_BER (ratio)

  reuse of
    SNR, dbm, temperature, current

* new dwdm sensors more generic, ber and quality_factor

* new sensors updated

* renamed html graphs new sensors

*  fixed ber polling

* Change to base SI Hz and s.

* update sensor divisors to bigint

* rename sql-schema/216.sql to 218.sql

* YAML junos dwmd sensor definitions, except BER

* bigint divisor fixed

* deafult 1 divisior

* small fixes including schema change for another PR

* schema fix
This commit is contained in:
bergroth
2017-12-13 03:27:10 +01:00
committed by Tony Murray
parent adca942552
commit 84fdfdf542
38 changed files with 439 additions and 11 deletions

View File

@@ -572,7 +572,7 @@ function format_si($value, $round = '2', $sf = '3')
$ext = $sizes[$i];
}
} else {
$sizes = array('', 'm', 'u', 'n');
$sizes = array('', 'm', 'u', 'n', 'p');
$ext = $sizes[0];
for ($i = 1; (($i < count($sizes)) && ($value != 0) && ($value <= 0.1)); $i++) {
$value = $value * 1000;