Add speed_admin to device ports tab (#650) (#653)

* Add speed_admin to device ports tab (#650)

* move from device_port_properties to device_port table, and tidy up
This commit is contained in:
Christian Ramseyer
2019-09-23 14:58:26 +02:00
committed by Oliver Gorwits
parent 26960bdd34
commit 8ffdff3bbc
8 changed files with 45 additions and 36 deletions

View File

@@ -26,7 +26,6 @@ register_worker({ phase => 'main', driver => 'snmp' }, sub {
|| { map {($_->port => $_)} $device->ports->all };
my $raw_speed = $snmp->i_speed_raw || {};
my $speed_admin = $snmp->i_speed_admin || {};
foreach my $idx (keys %$raw_speed) {
my $port = $interfaces->{$idx} or next;
@@ -37,7 +36,6 @@ register_worker({ phase => 'main', driver => 'snmp' }, sub {
}
$properties{ $port }->{raw_speed} = $raw_speed->{$idx};
$properties{ $port }->{speed_admin} = $speed_admin->{$idx};
}
my $err_cause = $snmp->i_err_disable_cause || {};