~ubuntu-branches/ubuntu/trusty/libsnmp-info-perl/trusty

« back to all changes in this revision

Viewing changes to Info/CiscoStack.pm

  • Committer: Package Import Robot
  • Author(s): Nuno Carvalho
  • Date: 2012-07-30 22:08:17 UTC
  • mfrom: (1.1.6)
  • Revision ID: package-import@ubuntu.com-20120730220817-bjnr7f6ztu67vnic
Tags: 2.08-1
* Team upload.
* d/control: Update Standards-Version to 3.9.3.
* d/copyright: Update URI for copyright format.
* d/copyright: Update copyright years and add new copyright holders.
* New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
 
40
40
use vars qw/$VERSION %MIBS %FUNCS %GLOBALS %MUNGE %PORTSTAT/;
41
41
 
42
 
$VERSION = '2.06';
 
42
$VERSION = '2.08';
43
43
 
44
44
%MIBS = ( 'CISCO-STACK-MIB' => 'ciscoStackMIB', );
45
45
 
65
65
    'm_type'         => 'moduleType',
66
66
    'm_model'        => 'moduleModel',
67
67
    'm_serial'       => 'moduleSerialNumber',
 
68
    'm_serial_string' => 'moduleSerialNumberString',
68
69
    'm_status'       => 'moduleStatus',
69
70
    'm_name'         => 'moduleName',
70
71
    'm_ports'        => 'moduleNumPorts',
159
160
        next if ( defined $partial and $iid !~ /^$partial$/ );
160
161
 
161
162
        # Test for gigabit
162
 
        if ( $p_duplex_cap->{$port} && $p_duplex_cap->{$port} == 0 ) {
 
163
        if ( defined $p_duplex_cap->{$port} and $p_duplex_cap->{$port} == 0 ) {
163
164
            $i_duplex->{$iid} = 'full';
164
165
        }
165
166
 
194
195
        next if ( defined $partial and $iid !~ /^$partial$/ );
195
196
 
196
197
        # Test for gigabit
197
 
        if ( $p_duplex_cap->{$port} && $p_duplex_cap->{$port} == 1 ) {
 
198
        if ( defined $p_duplex_cap->{$port} and $p_duplex_cap->{$port} == 1 ) {
198
199
            $i_duplex_admin->{$iid} = 'full';
199
200
        }
200
201