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
1d51a59e
Commit
1d51a59e
authored
Feb 23, 2011
by
Leigh B Stoller
Browse files
Minor change to support recreating a slice with a reserved vlan tag.
parent
cbc640e8
Changes
1
Hide whitespace changes
Inline
Side-by-side
protogeni/lib/GeniCMV2.pm.in
View file @
1d51a59e
...
...
@@ -1734,9 +1734,7 @@ sub ReserveVlanTags($)
}
push
(@
delete
,
$
vlan
);
}
else
{
print
STDERR
"$vlan already existed.
\n
"
;
}
#
#
If
there
is
already
a
reservation
,
it
better
be
one
of
the
#
tags
we
got
.
...
...
@@ -1746,7 +1744,13 @@ sub ReserveVlanTags($)
print
STDERR
"$vlan already had tag $tag.
\n
"
;
if
(
! (grep {$_ == $tag} @{ $taglist })) {
print
STDERR
" but the tag is not in the list we got.
\n
"
;
$
response
=
GeniResponse
->
Create
(
GENIRESPONSE_ERROR
);
#
#
Tell
the
caller
about
the
tag
;
it
is
the
only
choice
.
#
my
@
okaytags
=
($
tag
);
$
response
=
GeniResponse
->
Create
(
GENIRESPONSE_SEARCHFAILED
,
\@
okaytags
,
"Could not find a suitable tag"
);
goto
done
;
}
$
actualtag
=
$
tag
;
...
...
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