Skip to content

Commit 3a95c14

Browse files
authored
Update mactrack_functions.php
Add ifType 53 (vlan) and 161 (port-channel)
1 parent 9b20d01 commit 3a95c14

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/mactrack_functions.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1344,8 +1344,8 @@ function get_base_dot1dTpFdbEntry_ports($site, &$device, &$ifInterfaces, $snmp_r
13441344
$brPortIfType = @$ifInterfaces[$port_key['port_number']]['ifType'];
13451345
}
13461346

1347-
if (($brPortIfType >= 6) &&
1348-
($brPortIfType <= 9) &&
1347+
if (($brPortIfType >= 6 && $brPortIfType <= 9) ||
1348+
$brPortIfType == 53 || $brPortIfType == 161) &&
13491349
(!isset($ifInterfaces[$brPortIfIndex]['portLink']))) {
13501350
/* set some defaults */
13511351
$new_port_key_array[$i]['vlan_id'] = 'N/A';

0 commit comments

Comments
 (0)