Fix Arista interface bias current divisor (#9728)

* Remove exception

* Add test data

* Update arista_eos.json
This commit is contained in:
Søren Rosiak
2019-02-07 18:37:46 +01:00
committed by Tony Murray
parent d2af4bef42
commit 80f31b4831
3 changed files with 8095 additions and 7 deletions

View File

@@ -110,13 +110,6 @@ if (!empty($entity_oids)) {
$divisor = $divisor.str_pad('', $entry['entPhySensorPrecision'], '0');
}
if ($device['os'] === 'arista_eos') {
if ($entry['entPhySensorScale'] == 'milli' && $entry['entPhySensorType'] == 'amperes') {
$divisor = '1';
$multiplier = '1';
}
}
$current = ($current * $multiplier / $divisor);
if ($type == 'temperature') {
if ($current > '200') {

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff