Changeset 130
- Timestamp:
- May 18, 2013, 10:54:49 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/klask
r129 r130 1449 1449 } 1450 1450 1451 my $search_vlan_name = $OID_NUMBER{vlanName} . " $vlan_id";1451 my $search_vlan_name = $OID_NUMBER{vlanName} . ".$vlan_id"; 1452 1452 1453 1453 my ($session, $error) = Net::SNMP->session( %session ); … … 1459 1459 1460 1460 if (defined $result and $result->{$search_vlan_name} ne 'noSuchInstance') { 1461 my $vlan_name = $result->{$search_vlan_name };1462 print "Klask find VLAN $vlan_id on switch $sw_name with name $ swport\n";1461 my $vlan_name = $result->{$search_vlan_name || 'empty'}; 1462 print "Klask find VLAN $vlan_id on switch $sw_name with name $vlan_name\n"; 1463 1463 } 1464 1464 else {
Note: See TracChangeset
for help on using the changeset viewer.