Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
emulab-devel
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
143
Issues
143
List
Boards
Labels
Service Desk
Milestones
Merge Requests
6
Merge Requests
6
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
emulab
emulab-devel
Commits
266ba53d
Commit
266ba53d
authored
Dec 13, 2017
by
Kirk Webb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix trunk port native vlan membership portset (bitmask) logic.
parent
1d526637
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
tbsetup/snmpit/snmpit_force10.pm
tbsetup/snmpit/snmpit_force10.pm
+5
-4
No files found.
tbsetup/snmpit/snmpit_force10.pm
View file @
266ba53d
...
...
@@ -1874,11 +1874,12 @@ sub enablePortTrunking2($$$$) {
# was requested, and untagged if not. Refuse to do this if the
# requested vlan is vlan 1.
if
(
$native_vlan
!=
1
)
{
# Next, add it as
tagged if 'dual' mode, un
tagged if 'equal' mode.
# Next, add it as
untagged if 'dual' mode,
tagged if 'equal' mode.
my
$portmask
=
$self
->
convertIfindexesToBitmask
([
$pifindex
]);
my
$allzeromask
=
pack
("
B*
",
"
00000000
"
x
length
(
$portmask
));
my
$ubitmask
=
$equalmode
?
$allzeromask
:
$portmask
;
if
(
$self
->
setPortMembership
("
on
",
$portmask
,
$ubitmask
,
my
(
$vlebits
,
$vlubits
)
=
$self
->
getMemberBitmask
(
$native_ifindex
,
1
);
my
$ubitmask
=
$equalmode
?
$vlubits
:
(
$vlubits
|
$portmask
);
my
$ebitmask
=
$vlebits
|
$portmask
;
if
(
$self
->
setPortMembership
("
on
",
$ebitmask
,
$ubitmask
,
$native_ifindex
)
!=
0
)
{
warn
"
$id
: ERROR: Could not add port
$port
to vlan
"
.
"
$native_vlan
.
\n
";
...
...
Write
Preview
Markdown
is supported
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