Changeset 122
- Timestamp:
- Apr 21, 2013, 10:23:07 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/klask
r121 r122 97 97 J4903A => { model => 'HP2824', match => 'J4903A.+?Switch 2824,' }, 98 98 J4110A => { model => 'HP8000M', match => 'HP J4110A ProCurve Switch 8000M' }, 99 JD374A => { model => 'HP5500-24F', match => 'HP Comware.+?A5500-24G-SFP EI' , mibflag => 2},99 JD374A => { model => 'HP5500-24F', match => 'HP Comware.+?A5500-24G-SFP EI' }, 100 100 BS350T => { model => 'BS350T', match => 'BayStack 350T HW' }, 101 101 N3483G => { model => 'NA3483-6G', match => 'GigaSwitch V3 TP SFP-I 48V ES3' }, … … 350 350 -varbindlist => [$research1, $research2] 351 351 ); 352 if (not defined $result or $result->{$research1} eq 'noSuchInstance' or $result->{$research2} eq 'noSuchInstance') {352 if (not(defined $result and ($result->{$research1} ne 'noSuchInstance' or $result->{$research2} ne 'noSuchInstance'))) { 353 353 $session->close; 354 354 next LOOP_ON_SWITCH; … … 1526 1526 ); 1527 1527 1528 if (not defined $result or $result->{$research1} eq 'noSuchInstance' or $result->{$research2} eq 'noSuchInstance') {1528 if (not(defined $result and ($result->{$research1} ne 'noSuchInstance' or $result->{$research2} ne 'noSuchInstance'))) { 1529 1529 print "Klask do not find MAC $mac_address on switch $sw_name\n"; 1530 1530 $session->close;
Note: See TracChangeset
for help on using the changeset viewer.