Commit 7e2f7b68 authored by Leigh B Stoller's avatar Leigh B Stoller
Browse files

Add POA to get the console URL.

parent eaebe4d2
......@@ -1158,6 +1158,15 @@ sub PerformOperationalAction
return GeniCMV2::UnShareLan($args);
elsif ($action eq 'geni_console_url') {
if (!exists($options->{"geni_console_sliver"})) {
return GeniResponse->MalformedArgsResponse("No sliver provided!");
$args->{'slice_urn'} = $slice->urn();
$args->{'sliver_urn'} = $options->{"geni_console_sliver"};
return GeniCMV2::ConsoleURL($args);
return GeniResponse->Create(GENIRESPONSE_REFUSED, undef,
"Invalid operational action");
Supports Markdown
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