Commit 931d868d authored by Mike Hibler's avatar Mike Hibler
Browse files

Make portstats work on HP switches.

Made the obvious change and it seems to work.  I'm sure Keith must have sent
us this change before!
parent a6886bab
......@@ -2,7 +2,7 @@
# Copyright (c) 2000-2004, 2006 University of Utah and the Flux Group.
# Copyright (c) 2000-2010 University of Utah and the Flux Group.
# All rights reserved.
......@@ -302,6 +302,11 @@ DEVICE: foreach my $name (keys %portMap) {
$device = new snmpit_nortel($name);
/hp/ && do {
require snmpit_hp;
$device = new snmpit_hp($name);
# 'default' case
warn "WARNING: Unknown switch type ($type) for $name, skipping some ports\n";
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