Changeset 122


Ignore:
Timestamp:
Apr 21, 2013, 10:23:07 AM (11 years ago)
Author:
g7moreau
Message:
  • Error in test. Need to be improve !
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/klask

    r121 r122  
    9797   J4903A => { model => 'HP2824',     match => 'J4903A.+?Switch 2824,'           },
    9898   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'   },
    100100   BS350T => { model => 'BS350T',     match => 'BayStack 350T HW'                },
    101101   N3483G => { model => 'NA3483-6G',  match => 'GigaSwitch V3 TP SFP-I 48V ES3'  },
     
    350350         -varbindlist => [$research1, $research2]
    351351         );
    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'))) {
    353353         $session->close;
    354354         next LOOP_ON_SWITCH;
     
    15261526         );
    15271527
    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'))) {
    15291529         print "Klask do not find MAC $mac_address on switch $sw_name\n";
    15301530         $session->close;
Note: See TracChangeset for help on using the changeset viewer.