mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
move vrfs into routing for devices
git-svn-id: http://www.observium.org/svn/observer/trunk@2197 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -3,6 +3,11 @@
|
||||
|
||||
$datas[] = 'overview';
|
||||
|
||||
if (@mysql_result(mysql_query("select count(*) from vrfs WHERE device_id = '" . $device['device_id'] . "'"), 0) > '0')
|
||||
{
|
||||
$datas[] = 'vrf';
|
||||
}
|
||||
|
||||
$bgp_count = mysql_result(mysql_query("select count(*) from bgpPeers WHERE device_id = '" . $device['device_id'] . "'"), 0);
|
||||
if ($bgp_count) { $datas[] = 'bgp'; }
|
||||
|
||||
@@ -12,11 +17,11 @@ if ($cef_count) { $datas[] = 'cef'; }
|
||||
$ospf_count = mysql_result(mysql_query("select count(*) from ospf_instances WHERE device_id = '" . $device['device_id'] . "'"), 0);
|
||||
if ($ospf_count) { $datas[] = 'ospf'; }
|
||||
|
||||
|
||||
$type_text['overview'] = "Overview";
|
||||
$type_text['bgp'] = "BGP";
|
||||
$type_text['cef'] = "CEF";
|
||||
$type_text['ospf'] = "OSPF";
|
||||
$type_text['vrf'] = "VRFs";
|
||||
|
||||
print_optionbar_start();
|
||||
|
||||
|
Reference in New Issue
Block a user