Commit de2e409f authored by Leigh B. Stoller's avatar Leigh B. Stoller
Browse files

Neuter portstats inside an elabinelab. Eventually pass it out with

XMLRPC, but for now avoid the warnings.
parent fb726630
...@@ -18,6 +18,8 @@ ...@@ -18,6 +18,8 @@
# #
# Configure variables # Configure variables
# #
my $ELABINELAB = @ELABINELAB@;
use lib '@prefix@/lib'; use lib '@prefix@/lib';
use libdb; use libdb;
...@@ -157,6 +159,14 @@ if ($opt{p}) { ...@@ -157,6 +159,14 @@ if ($opt{p}) {
} }
} }
#
# Eventually, we can pass this out via XMLRPC. For now just exit.
#
if ($ELABINELAB) {
print "Not bothering with portstats inside an elabinelab.\n";
exit(0);
}
snmpit_lib::init(0); snmpit_lib::init(0);
# #
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment