Commit 354e69d9 authored by Leigh B Stoller's avatar Leigh B Stoller

Add OpenFlowController($) to get controller from link.

parent 5b70faaf
......@@ -751,6 +751,21 @@ sub XenPtype($)
return undef;
}
sub OpenFlowController($)
{
my ($link) = @_;
my $result = undef;
my @stuff = FindNodesNS("n:openflow_controller", $link,
$EMULAB_NS)->get_nodelist();
if (scalar(@stuff) > 0) {
my $controller = GetText("url", $stuff[0]);
$result = $controller
if (defined($controller));
}
return $result;
}
sub GetXenSettings($)
{
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