From a66bf7a2dd3c3b58d296e4e3fc4ba5baba464480 Mon Sep 17 00:00:00 2001 From: Tom Laermans Date: Mon, 29 Nov 2010 11:14:01 +0000 Subject: [PATCH] reset valid_afi_safi per peer, to not show error graphs on bgp sessions not supporting this prefix type git-svn-id: http://www.observium.org/svn/observer/trunk@1747 61d68cd4-352d-0410-923a-c4978735b2b8 --- html/pages/device/bgp.inc.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/html/pages/device/bgp.inc.php b/html/pages/device/bgp.inc.php index 13f548de70..239c68d2fc 100644 --- a/html/pages/device/bgp.inc.php +++ b/html/pages/device/bgp.inc.php @@ -128,6 +128,7 @@ while ($peer = mysql_fetch_assoc($peer_query)) } } } + if ($_GET['opta'] == "macaccounting" && $has_macaccounting) { $acc = mysql_fetch_assoc(mysql_query("SELECT * FROM `ipv4_mac` AS I, mac_accounting AS M, ports AS P WHERE I.ipv4_address = '".$peer['bgpPeerIdentifier']."' AND M.mac = I.mac_address AND P.interface_id = M.interface_id")); @@ -157,6 +158,7 @@ while ($peer = mysql_fetch_assoc($peer_query)) } $i++; + unset($valid_afi_safi); } ?>