Commit b9dffc3e authored by Kirk Webb's avatar Kirk Webb
Browse files

Pull in new comware (h3c) module, courtesy of Keith Sklower @ DETER.

For now I'm adding this as a separate file, wherein I have renamed the
base procurve module as "snmpit_hpupd" until we have more time to test the
integration.  I did a fairly quick-and-dirty port of this code to work
with modern Emulab snmpit.

The comware module will be used for switches with "comware" in their
'type' string.
parent cee881a6
...@@ -40,7 +40,7 @@ LIB_STUFF = portstats snmpit_intel.pm \ ...@@ -40,7 +40,7 @@ LIB_STUFF = portstats snmpit_intel.pm \
snmpit_nortel.pm snmpit_hp.pm snmpit_apcon.pm \ snmpit_nortel.pm snmpit_hp.pm snmpit_apcon.pm \
snmpit_arista.pm snmpit_arista_switch_daemon.py \ snmpit_arista.pm snmpit_arista_switch_daemon.py \
snmpit_mellanox.pm MLNX_XMLGateway.pm \ snmpit_mellanox.pm MLNX_XMLGateway.pm \
snmpit_force10.pm force10_expect.pm snmpit_force10.pm force10_expect.pm snmpit_h3c.pm
# #
# Force dependencies on the scripts so that they will be rerun through # Force dependencies on the scripts so that they will be rerun through
......
This diff is collapsed.
...@@ -1646,7 +1646,13 @@ sub snap($) { ...@@ -1646,7 +1646,13 @@ sub snap($) {
require snmpit_force10; require snmpit_force10;
$device = new snmpit_force10($devicename,$self->{DEBUG}); $device = new snmpit_force10($devicename,$self->{DEBUG});
last; last;
}; # /mellanox.*/ }; # /force10.*/
(/comware/)
&& do {
require snmpit_h3c;
$device = new snmpit_h3c($devicename,$self->{DEBUG});
last;
}; # /comware.*/
print "Device $devicename is not of a known type\n"; print "Device $devicename is not of a known type\n";
} }
if (!$device) { if (!$device) {
......
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