Changeset 215
- Timestamp:
- Feb 18, 2017, 2:25:55 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/klask
r214 r215 759 759 $sw_port_hr =~ s/^Giga/Gi/i; 760 760 761 return $sw_port_hr;761 return ucfirst $sw_port_hr; 762 762 } 763 763 … … 2144 2144 # Retrieve numeric port value 2145 2145 my $port_num = snmp_get_switchport_num($session, normalize_port_human_readable($port), $verbose ? 'yes' : ''); 2146 die "Error : Port $port not exist on switch $switch_name\n" if $port_num =~ m/^\d+$/;2146 die "Error : Port $port not exist on switch $switch_name\n" if not $port_num =~ m/^\d+$/; 2147 2147 2148 2148 my $search_portstatus = $OID_NUMBER{'portUpDown'} .'.'. $port_num;
Note: See TracChangeset
for help on using the changeset viewer.