From 302ecb8858969287d7bc70cd3eb43d639102f157 Mon Sep 17 00:00:00 2001 From: laf Date: Tue, 19 Jan 2016 11:25:03 +0000 Subject: [PATCH] Removed unused code in port poller for non-cisco devices --- includes/polling/ports.inc.php | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/includes/polling/ports.inc.php b/includes/polling/ports.inc.php index 0432c25300..dba1c57b4a 100644 --- a/includes/polling/ports.inc.php +++ b/includes/polling/ports.inc.php @@ -184,27 +184,6 @@ if ($device['os_group'] == 'cisco') { } else { $port_stats = snmpwalk_cache_oid($device, 'dot1qPortVlanTable', $port_stats, 'Q-BRIDGE-MIB'); - - $vlan_ports = snmpwalk_cache_twopart_oid($device, 'dot1qVlanCurrentEgressPorts', $vlan_stats, 'Q-BRIDGE-MIB'); - $vlan_ifindex_map = snmpwalk_cache_oid($device, 'dot1dBasePortIfIndex', $vlan_stats, 'Q-BRIDGE-MIB'); - - foreach ($vlan_ports as $instance) { - foreach (array_keys($instance) as $vlan_id) { - $parts = explode(' ', $instance[$vlan_id]['dot1qVlanCurrentEgressPorts']); - $binary = ''; - foreach ($parts as $part) { - $binary .= zeropad(decbin($part), 8); - } - - for ($i = 0; $i < strlen($binary); $i++) { - if ($binary[$i]) { - $ifindex = $i; - // FIXME $vlan_ifindex_map[$i] - $q_bridge_mib[$ifindex][] = $vlan_id; - } - } - } - } }//end if $polled = time();