Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
0554e6c4
Commit
0554e6c4
authored
Mar 25, 2009
by
Keith Sklower
Browse files
Firmware >= 6.0 numbers ifIndexes differently for module/port -> ifIndex
parent
abda90ac
Changes
1
Hide whitespace changes
Inline
Side-by-side
tbsetup/snmpit_nortel.pm
View file @
0554e6c4
...
...
@@ -163,6 +163,7 @@ sub new($$$;$) {
return
undef
;
}
$self
->
{
DESCR
}
=
$test_case
;
$self
->
readifIndex
();
...
...
@@ -500,7 +501,7 @@ sub createVlan($$$) {
my
$self
=
shift
;
my
$vlan_id
=
shift
;
my
$vlan_number
=
shift
;
my
$id
=
$self
->
{
NAME
}
.
"
:
find
Vlan
";
my
$id
=
$self
->
{
NAME
}
.
"
:
create
Vlan
";
if
(
!
defined
(
$vlan_number
))
{
warn
"
$id
called without supplying vlan_number
";
...
...
@@ -1407,7 +1408,13 @@ sub readifIndex($) {
$self
->
debug
(
$self
->
{
NAME
}
.
"
readifIndex:
\n
",
2
);
if
(
getDeviceType
(
$self
->
{
NAME
})
=~
/^nortel5/
)
{
(
$oidbits
,
$oidshift
)
=
(
63
,
6
);
$self
->
{
DESCR
}
=~
/SW:v(\d+)\./
;
my
$version
=
$
1
;
if
(
$version
&&
(
$version
>
5
))
{
(
$oidbits
,
$oidshift
)
=
(
127
,
7
);
}
else
{
(
$oidbits
,
$oidshift
)
=
(
63
,
6
);
}
}
my
(
$rows
)
=
snmpitBulkwalkFatal
(
$self
->
{
SESS
},
["
rcPortIndex
"]);
foreach
my
$rowref
(
@$rows
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment