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
6be075a1
Commit
6be075a1
authored
Oct 24, 2014
by
Leigh B Stoller
Browse files
Bug fix to blockmode.
parent
04a17d6e
Changes
1
Hide whitespace changes
Inline
Side-by-side
tbsetup/snmpit_test/snmpit_test.in
View file @
6be075a1
...
...
@@ -2841,17 +2841,21 @@ sub doReserveVlanTags($$@) {
next
if
(
!
$opt
{'
blockmode
'});
}
elsif
(
!
$opt
{'
blockmode
'})
{
#
# In block mode (multiple tags) do not signal an error on failure.
# Caller will figure it out.
#
print
STDERR
"
Could not pre-reserve tag for
$vlan
\n
";
goto
again
if
(
@tags
);
#
# No more tags to try. In blockmode that is fine, the caller will
# figure it out by looking to see which tags are reserved. But
# when not in blockmode it is an error if we cannot get one of the
# tags in the list we were given. We get here only when we have run
# out of tags to try.
#
if
(
!
$opt
{'
blockmode
'})
{
print
STDERR
"
Could not pre-reserve a tag for
$vlan
\n
";
$errors
++
;
last
;
}
goto
again
if
(
@tags
);
}
if
(
$errors
)
{
foreach
my
$ref
(
@assigned
)
{
...
...
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