mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-26 08:03:51 +02:00
new things! vrfs!
git-svn-id: http://www.observium.org/svn/observer/trunk@256 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -39,6 +39,16 @@ if(@mysql_result(mysql_query("select count(vlan_id) from vlans WHERE device_id =
|
||||
</li>");
|
||||
}
|
||||
|
||||
if(@mysql_result(mysql_query("select count(*) from vrfs WHERE device_id = '" . $device['device_id'] . "'"), 0) > '0') {
|
||||
echo("
|
||||
<li class=" . $select['dev-vrfs'] . ">
|
||||
<a href='?page=device&id=" . $device['device_id'] . "§ion=dev-vrfs' >
|
||||
<img src='images/16/layers.png' align=absmiddle border=0> VRFs
|
||||
</a>
|
||||
</li>");
|
||||
}
|
||||
|
||||
|
||||
if($config['enable_bgp'] && $device['bgpLocalAs']) {
|
||||
echo("
|
||||
<li class=" . $select['dev-bgp'] . ">
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
echo("<div style='margin: 5px;'><table border=0 cellspacing=0 cellpadding=5 width=100%>");
|
||||
$i = "1";
|
||||
$vrf_query = mysql_query("select * from vrfs WHERE device_id = '".$_GET['id']."' ORDER BY 'vrf_name'");
|
||||
while($vrf = mysql_fetch_array($vrf_query)) {
|
||||
include("includes/print-vrf.inc");
|
||||
$i++;
|
||||
}
|
||||
echo("</table></div>");
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user