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

A couple of little changes to create layer1 paths.

parent 8ad8d651
......@@ -2245,6 +2245,7 @@ sub GetTicketAuxAux($)
my $vindex = 0;
my $trivial_ok = 1;
my $protocol = "ethernet";
my $layer = (GeniXML::IsLayer1($linkref) ? 1 : 2);
if (!defined($lanname)) {
$response = GeniResponse->Create(GENIRESPONSE_BADARGS, undef,
......@@ -2870,7 +2871,8 @@ sub GetTicketAuxAux($)
"encap_style" => $encap,
"fixed_iface" => $iface_name,
"uselinkdelay"=> $uselinkdelay,
"protocol" => $protocol
"protocol" => $protocol,
"layer" => $layer,
});
if ($ofcontroller && $ofcontroller ne "" && !$ignore_openflow) {
......
......@@ -397,6 +397,14 @@ sub LinkType($)
return TunnelType($_[0]);
}
sub IsLayer1($)
{
return 1
if (LinkType($_[0]) eq "layer1");
return 0;
}
sub GetExpires($)
{
my ($node) = @_;
......
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