mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Fixed overview graph on Cisco ASA announcing all interfaces in type l2vlan (by default filtered) (#9849)
* Fix ASA announcing all interfaces in l2vlan * Fix ASA announcing all interfaces in l2vlan
This commit is contained in:
@@ -8,6 +8,12 @@ foreach (dbFetchRows('SELECT * FROM `ports` WHERE `device_id` = ? AND `disabled`
|
||||
$ignore = 0;
|
||||
if (is_array($config['device_traffic_iftype'])) {
|
||||
foreach ($config['device_traffic_iftype'] as $iftype) {
|
||||
if ($iftype == '/l2vlan/' && $device['os']=='asa') {
|
||||
// ASA (at least in multicontext) reports all interfaces as l2vlan even if they are l3
|
||||
// so every context has no graph displayed unless l2vlan are accepted for all.
|
||||
// This patch will ignore l2vlan for ASA.
|
||||
continue;
|
||||
}
|
||||
if (preg_match($iftype.'i', $port['ifType'])) {
|
||||
$ignore = 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user