Skip to content

Commit

Permalink
Cisco / Huawei use ifType l2vlan for subinterfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
nickhilliard authored and barryo committed Sep 6, 2020
1 parent 8506244 commit 2c0dd11
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion database/Entities/Switcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -768,7 +768,9 @@ public function snmpPollSwitchPorts( $host, $logger = false, &$result = false ){
foreach( $host->useIface()->indexes() as $index ) {

// we're only interested in Ethernet ports here (right?)
if( $host->useIface()->types()[ $index ] != SNMPIface::IF_TYPE_ETHERNETCSMACD && $host->useIface()->types()[ $index ] != SNMPIface::IF_TYPE_L3IPVLAN ) {
if( $host->useIface()->types()[ $index ] != SNMPIface::IF_TYPE_ETHERNETCSMACD
&& $host->useIface()->types()[ $index ] != SNMPIface::IF_TYPE_L2VLAN
&& $host->useIface()->types()[ $index ] != SNMPIface::IF_TYPE_L3IPVLAN ) {
continue;
}

Expand Down

0 comments on commit 2c0dd11

Please sign in to comment.