From 999e2fb131073684db68ab946c09de5e1c1806e6 Mon Sep 17 00:00:00 2001 From: Adam Amstrong Date: Tue, 24 Mar 2009 15:24:18 +0000 Subject: [PATCH] add pseudowires config knob and menu entry git-svn-id: http://www.observium.org/svn/observer/trunk@376 61d68cd4-352d-0410-923a-c4978735b2b8 --- config.php.default | 1 + html/includes/print-menubar.php | 3 ++- includes/discovery/cisco-pw.php | 4 ++++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/config.php.default b/config.php.default index fdc5b1ce9..547b4c4cf 100755 --- a/config.php.default +++ b/config.php.default @@ -72,6 +72,7 @@ $config['enable_bgp'] = 0; # Enable BGP session collection and display $config['enable_syslog'] = 0; # Enable Syslog $config['enable_billing'] = 0; # Enable BGP session collection and display $config['enable_inventory'] = 0; # Enable Inventory +$config['enable_pseudowires'] = 0; # Enable Cisco Pseudowires ## Uncomment this to enable display of rancid-collected configs #$config['rancid_configs'] = '/var/lib/rancid/network/configs/'; diff --git a/html/includes/print-menubar.php b/html/includes/print-menubar.php index 3640f9e7f..37f265151 100644 --- a/html/includes/print-menubar.php +++ b/html/includes/print-menubar.php @@ -120,13 +120,14 @@ if($config['show_locations']) { echo("
  • '0' OR out_errors > '0')"),0); if($interfaces['errored']) { echo("
  • Errored (".$interfaces['errored'].")
  • "); } if($config['enable_billing']) { echo("
  • Traffic Bills
  • "); $ifbreak = 1;} +if($config['enable_pseudowires']) { echo("
  • Pseudowires
  • "); $ifbreak = 1;} + if($_SESSION['userlevel'] >= '5') { echo("

  • "); diff --git a/includes/discovery/cisco-pw.php b/includes/discovery/cisco-pw.php index f54bd354c..70a293fa1 100755 --- a/includes/discovery/cisco-pw.php +++ b/includes/discovery/cisco-pw.php @@ -1,5 +1,7 @@