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
4fd9839b
Commit
4fd9839b
authored
Dec 17, 2012
by
Leigh B Stoller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug Fix; cull out duplicates in RecordVlanInsertion so that the
members list of vlans table does not get messed up.
parent
acbbdf51
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
db/Lan.pm.in
db/Lan.pm.in
+9
-1
No files found.
db/Lan.pm.in
View file @
4fd9839b
...
...
@@ -3401,7 +3401,15 @@ sub RecordVlanInsertion($$$)
my
@
portlist
;
$
vlan
->
PortList
(\@
portlist
)
==
0
or
return
-
1
;
my
$
members
=
join
(
" "
,
@
portlist
);
#
Watch
for
duplicates
my
%
portlist
=
();
foreach
my
$
port
(@
portlist
)
{
$
portlist
{$
port
}
=
$
port
if
(
!exists($portlist{$port}));
}
my
$
members
=
join
(
" "
,
keys
(%
portlist
));
#
#
Not
all
vlans
have
the
path
set
.
Only
intraswitch
vlans
do
.
In
...
...
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