Commit 47a3a354 authored by Leigh Stoller's avatar Leigh Stoller

Minor change for adding user alloc switches.

parent 4be1e34c
......@@ -225,10 +225,17 @@ sub CreateSwitch()
{
my $blob = {
"type" => $type,
"role" => ($layer1 ? "widearea_switch" :
($usersw ? "testnode" : "testswitch")),
"role" => ($layer1 ? "widearea_switch" : "testswitch"),
"initial_eventstate" => TBDB_NODESTATE_ISUP(),
};
#
# User switches needs some different stuff.
#
if ($usersw) {
$blob->{"role"} = "testnode";
$blob->{"initial_eventstate"} = TBDB_NODESTATE_SHUTDOWN();
}
my $node;
print "Creating new node $node_id\n";
......
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