Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emulab
emulab-devel
Commits
59040528
Commit
59040528
authored
Apr 12, 2012
by
Leigh B Stoller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not allow swapout if experiment is sharing vlans.
For now, do not allow modify either. Still working on that.
parent
1ddfe2ff
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
tbsetup/swapexp.in
tbsetup/swapexp.in
+6
-1
No files found.
tbsetup/swapexp.in
View file @
59040528
...
...
@@ -2,7 +2,7 @@
#
# EMULAB-COPYRIGHT
# Copyright (c) 2000-201
1
University of Utah and the Flux Group.
# Copyright (c) 2000-201
2
University of Utah and the Flux Group.
# All rights reserved.
#
...
...
@@ -649,6 +649,11 @@ else {
"
Experiment
$pid
/
$eid
is locked down; cannot swap!
\n
")
if
(
$lockdown
&&
!
$lockforce
);
ExitWithStatus
(
1
,
"
Experiment is sharing vlans; cannot swap or modify!
\n
")
if
((
$inout
eq
"
out
"
||
$inout
eq
"
modify
")
&&
$experiment
->
SharingVlans
());
#
# Check the state for the various operations.
#
...
...
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