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

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 @@ ...@@ -2,7 +2,7 @@
# #
# EMULAB-COPYRIGHT # EMULAB-COPYRIGHT
# 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. # All rights reserved.
# #
...@@ -302,6 +302,11 @@ DEVICE: foreach my $name (keys %portMap) { ...@@ -302,6 +302,11 @@ DEVICE: foreach my $name (keys %portMap) {
$device = new snmpit_nortel($name); $device = new snmpit_nortel($name);
last; last;
}; };
/hp/ && do {
require snmpit_hp;
$device = new snmpit_hp($name);
last;
};
# 'default' case # 'default' case
warn "WARNING: Unknown switch type ($type) for $name, skipping some ports\n"; warn "WARNING: Unknown switch type ($type) for $name, skipping some ports\n";
......
Markdown is supported
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