From be58ec3b72f5f4fde16e2fb3d7c88e49b6d58d30 Mon Sep 17 00:00:00 2001 From: PipoCanaja <38363551+PipoCanaja@users.noreply.github.com> Date: Wed, 13 Mar 2019 09:04:51 +0100 Subject: [PATCH] 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 --- html/includes/graphs/device/bits.inc.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/html/includes/graphs/device/bits.inc.php b/html/includes/graphs/device/bits.inc.php index 279f4ed004..969334134f 100644 --- a/html/includes/graphs/device/bits.inc.php +++ b/html/includes/graphs/device/bits.inc.php @@ -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; }