mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
# -> / for phpdoc
git-svn-id: http://www.observium.org/svn/observer/trunk@3239 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -102,7 +102,7 @@ foreach (dbFetchRows("SELECT * FROM `bgpPeers` WHERE `device_id` = ? ORDER BY `b
|
||||
}
|
||||
else
|
||||
{
|
||||
#$peername = gethostbyaddr($peer['bgpPeerIdentifier']); ## FFffuuu DNS ## Cache this in discovery?
|
||||
#$peername = gethostbyaddr($peer['bgpPeerIdentifier']); /// FFffuuu DNS /// Cache this in discovery?
|
||||
# if ($peername == $peer['bgpPeerIdentifier'])
|
||||
# {
|
||||
# unset($peername);
|
||||
@@ -121,7 +121,7 @@ foreach (dbFetchRows("SELECT * FROM `bgpPeers` WHERE `device_id` = ? ORDER BY `b
|
||||
$this_afisafi = $afi.$safi;
|
||||
$peer['afi'] .= $sep . $afi .".".$safi;
|
||||
$sep = "<br />";
|
||||
$peer['afisafi'][$this_afisafi] = 1; ## Build a list of valid AFI/SAFI for this peer
|
||||
$peer['afisafi'][$this_afisafi] = 1; /// Build a list of valid AFI/SAFI for this peer
|
||||
}
|
||||
|
||||
unset($sep);
|
||||
@@ -157,7 +157,7 @@ foreach (dbFetchRows("SELECT * FROM `bgpPeers` WHERE `device_id` = ? ORDER BY `b
|
||||
case 'prefixes_ipv6multicast':
|
||||
list(,$afisafi) = explode("_", $vars['view']);
|
||||
if (isset($peer['afisafi'][$afisafi])) { $peer['graph'] = 1; }
|
||||
# FIXME no break??
|
||||
/// FIXME no break??
|
||||
case 'updates':
|
||||
$graph_array['type'] = "bgp_" . $vars['view'];
|
||||
$graph_array['id'] = $peer['bgpPeer_id'];
|
||||
|
@@ -4,7 +4,7 @@ $i_i = "0";
|
||||
|
||||
echo('<table width=100% border=0 cellpadding=5>');
|
||||
|
||||
#### Loop Instances
|
||||
/// Loop Instances
|
||||
|
||||
foreach (dbFetchRows("SELECT * FROM `ospf_instances` WHERE `device_id` = ?", array($device['device_id'])) as $instance)
|
||||
{
|
||||
@@ -40,7 +40,7 @@ foreach (dbFetchRows("SELECT * FROM `ospf_instances` WHERE `device_id` = ?", arr
|
||||
echo('<table width=100% border=0 cellpadding=5>');
|
||||
echo('<tr><th></th><th>Area Id</th><th>Status</th><th>Ports</th></tr>');
|
||||
|
||||
##### Loop Areas
|
||||
///# Loop Areas
|
||||
$i_a = 0;
|
||||
foreach (dbFetchRows("SELECT * FROM `ospf_areas` WHERE `device_id` = ?", array($device['device_id'])) as $area)
|
||||
{
|
||||
@@ -61,7 +61,7 @@ foreach (dbFetchRows("SELECT * FROM `ospf_instances` WHERE `device_id` = ?", arr
|
||||
echo('<table width=100% border=0 cellpadding=5>');
|
||||
echo('<tr><th></th><th>Port</th><th>Status</th><th>Port Type</th><th>Port State</th></tr>');
|
||||
|
||||
##### Loop Ports
|
||||
///# Loop Ports
|
||||
$i_p = $i_a + 1;
|
||||
$p_sql = "SELECT * FROM `ospf_ports` AS O, `ports` AS P WHERE O.`ospfIfAdminStat` = 'enabled' AND O.`device_id` = ? AND O.`ospfIfAreaId` = ? AND P.port_id = O.port_id";
|
||||
foreach (dbFetchRows($p_sql, array($device['device_id'], $area['ospfAreaId'])) as $ospfport)
|
||||
@@ -96,11 +96,11 @@ foreach (dbFetchRows("SELECT * FROM `ospf_instances` WHERE `device_id` = ?", arr
|
||||
echo('</tr>');
|
||||
|
||||
$i_a++;
|
||||
} ### End loop areas
|
||||
} /// End loop areas
|
||||
|
||||
echo('<tr bgcolor="#ffffff"><th></th><th>Router Id</th><th>Device</th><th>IP Address</th><th>Status</th></tr>');
|
||||
|
||||
## Loop Neigbours
|
||||
/// Loop Neigbours
|
||||
$i_n = 1;
|
||||
foreach (dbFetchRows("SELECT * FROM `ospf_nbrs` WHERE `device_id` = ?", array($device['device_id'])) as $nbr)
|
||||
{
|
||||
@@ -141,7 +141,7 @@ foreach (dbFetchRows("SELECT * FROM `ospf_instances` WHERE `device_id` = ?", arr
|
||||
echo('</tr>');
|
||||
|
||||
$i_i++;
|
||||
} ### End loop instances
|
||||
} /// End loop instances
|
||||
|
||||
echo('</table>');
|
||||
|
||||
|
Reference in New Issue
Block a user