mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
fix some bgp stuff
git-svn-id: http://www.observium.org/svn/observer/trunk@251 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -22,7 +22,7 @@
|
||||
if($peer['bgpPeerAdminStatus'] == "start") { $admin_col = "green"; } else { $admin_col = "gray"; }
|
||||
|
||||
if($peer['bgpPeerRemoteAs'] == $peer['bgpLocalAs']) { $peer_type = "<span style='color: #00f;'>iBGP</span>"; } else { $peer_type = "<span style='color: #0a0;'>eBGP</span>";
|
||||
if($peer['bgpPeerRemoteAS'] >= '64512' && $peer['bgpPeerRemoteAS'] =< '65535') { $peer_type = "<span style='color: #f00;'>Priv eBGP</span>"; }
|
||||
if($peer['bgpPeerRemoteAS'] >= '64512' && $peer['bgpPeerRemoteAS'] <= '65535') { $peer_type = "<span style='color: #f00;'>Priv eBGP</span>"; }
|
||||
}
|
||||
|
||||
$peerhost = mysql_fetch_array(mysql_query("SELECT * FROM ipaddr AS A, interfaces AS I, devices AS D WHERE A.addr = '".$peer['bgpPeerIdentifier']."' AND I.interface_id = A.interface_id AND D.device_id = I.device_id"));
|
||||
|
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
echo("<div style='margin: 5px;'><table border=0 cellspacing=0 cellpadding=5 width=100%>");
|
||||
echo("<div style='margin: 5px;'><table border=0 cellspacing=1 cellpadding=5 width=100%>");
|
||||
|
||||
echo("<tr><td colspan=6><h2>Local AS : " . $device['bgpLocalAs'] . "</h2></td></tr>");
|
||||
|
||||
|
@@ -23,7 +23,6 @@ echo("
|
||||
<table width=100% cellspacing=0 cellpadding=0>
|
||||
<tr><td width=50% valign=top>");
|
||||
|
||||
|
||||
#if(file_exists("includes/dev-data-" . strtolower($device[os]) . ".inc.php")) {
|
||||
echo("<div style='background-color: #eeeeee; margin: 5px; padding: 5px;'>");
|
||||
# echo("<p class=sectionhead>Device Data</p><div style='height: 5px;'></div>");
|
||||
|
Reference in New Issue
Block a user