Commit 59040528 authored by Leigh B Stoller's avatar Leigh B Stoller

Do not allow swapout if experiment is sharing vlans.

For now, do not allow modify either. Still working on that.
parent 1ddfe2ff
......@@ -2,7 +2,7 @@
#
# EMULAB-COPYRIGHT
# Copyright (c) 2000-2011 University of Utah and the Flux Group.
# Copyright (c) 2000-2012 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.
#
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment