improvements to vrf discovery from falz

git-svn-id: http://www.observium.org/svn/observer/trunk@2059 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong
2011-04-11 18:54:15 +00:00
parent ff2991fd70
commit 4fac761f98
3 changed files with 87 additions and 83 deletions

View File

@@ -153,7 +153,7 @@ if ($config['enable_billing']) { echo('<li><a href="bills/"><img src="images/16/
if ($config['enable_pseudowires']) { echo('<li><a href="pseudowires/"><img src="images/16/arrow_switch.png" border="0" align="absmiddle" /> Pseudowires</a></li>'); $ifbreak = 1; }
if ($config['enable_pseudowires']) { echo('<li><a href="vrfs/"><img src="images/16/layers.png" border="0" align="absmiddle" /> VRFs</a></li>'); $ifbreak = 1; }
if ($config['enable_vrfs']) { echo('<li><a href="vrfs/"><img src="images/16/layers.png" border="0" align="absmiddle" /> VRFs</a></li>'); $ifbreak = 1; }
?>
<li><a href="ipv4/"><img src="images/16/email_link.png" border="0" align="absmiddle" /> IPv4 Search</a></li>

View File

@@ -128,6 +128,7 @@ $config['enable_bgp'] = 1; # Enable BGP session collection and displa
$config['enable_syslog'] = 0; # Enable Syslog
$config['enable_inventory'] = 1; # Enable Inventory
$config['enable_pseudowires'] = 1; # Enable Pseudowires
$config['enable_vrfs'] = 1; # Enable VRFs
$config['enable_printers'] = 0; # Enable Printer support
$config['enable_libvirt'] = 0; # Enable Libvirt VM support

View File

@@ -1,7 +1,9 @@
<?php
if ($device['os_group'] == "ios" || $device['os_group'] == "junos" || $device['os'] == "ironware")
if ($config['enable_vrfs'])
{
if ($device['os_group'] == "ios" || $device['os_group'] == "junos" || $device['os'] == "ironware")
{
unset($vrf_count);
echo("VRFs : ");
@@ -99,6 +101,7 @@ if ($device['os_group'] == "ios" || $device['os_group'] == "junos" || $device['o
unset($valid_vrf);
echo("\n");
} # ios/junos/ironware
} # ios/junos/ironware
} # enable_vrfs
?>