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
31c447c9
Commit
31c447c9
authored
Jun 28, 2012
by
Leigh B Stoller
Browse files
Add openflow-vlans holding experiment.
parent
25b8c8dc
Changes
1
Hide whitespace changes
Inline
Side-by-side
install/updates/5/29
0 → 100644
View file @
31c447c9
#
# Create new holding experiment for openflow vlans
#
use strict;
use libinstall;
use emdb;
use OSinfo;
use NodeType;
my $EID = "openflow-vlans";
my $DESC = "Holding experiment for static openflow vlans";
my $SUDO = "/usr/local/bin/sudo";
my $BATCHEXP = "$TBROOT/bin/batchexp";
sub InstallUpdate($$)
{
my ($version, $phase) = @_;
my $pid = "emulab-ops";
if ($phase eq "pre") {
#
# Holding experiment.
#
Phase "experiment", "Creating openflow vlan holding experiment", sub {
PhaseSkip("Experiment exists")
if (-d "$PROJROOT/$pid/exp/$EID");
ExecQuietFatal("$SUDO -u $PROTOUSER $WAP $BATCHEXP ".
" -q -i -k -j -w -f -n ".
" -S 'System Experiment' ".
" -L 'System Experiment' ".
" -E '$DESC - DO NOT DELETE' ".
" -p $pid -e $EID");
PhaseSucceed();
};
}
return 0;
}
1;
# Local Variables:
# mode:perl
# End:
Write
Preview
Supports
Markdown
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