Skip to content
GitLab
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
8bedc880
Commit
8bedc880
authored
Apr 07, 2008
by
Robert Ricci
Browse files
Fix minor bug in resetVlanIfOnTrunk() - we convert the port number to
channel number before calling this function.
parent
735c7a2c
Changes
1
Hide whitespace changes
Inline
Side-by-side
tbsetup/snmpit_cisco.pm
View file @
8bedc880
...
...
@@ -1713,15 +1713,17 @@ sub resetVlanIfOnTrunk($$$) {
# TODO: Perhaps this should be general - ie. $self{IFINDEX} should have
# the channel ifIndex the the port is in a channel. Not sure that
# this is _always_ beneficial, though
#
my
$channel
=
snmpitGetFatal
(
$self
->
{
SESS
},["
pagpGroupIfIndex
",
$ifIndex
]);
if
(
!
(
$channel
=~
/^\d+$/
)
||
(
$channel
==
0
))
{
print
"
WARNING: resetVlanIfOnTrunk got bad channel (
$channel
) for
$self
->{NAME}.
$modport
\n
";
return
0
;
}
if
((
$channel
=~
/^\d+$/
)
&&
(
$channel
!=
0
))
{
$ifIndex
=
$channel
;
}
# NOTE: This 'conversion' is no longer needed, since we call
# getChannelIfIndex on the port before passing it into this function
#
#my $channel = snmpitGetFatal($self->{SESS},["pagpGroupIfIndex",$ifIndex]);
#if (!($channel =~ /^\d+$/) || ($channel == 0)) {
# print "WARNING: resetVlanIfOnTrunk got bad channel ($channel) for $self->{NAME}.$modport\n";
# return 0;
#}
#if (($channel =~ /^\d+$/) && ($channel != 0)) {
# $ifIndex = $channel;
#}
#
# Get the existing bitfield for allowed VLANs on the trunk
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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