Commit 583af89b authored by Leigh B Stoller's avatar Leigh B Stoller
Browse files

Ask for the virt_node_attributes and add to config for library to look

at.
parent f149584a
......@@ -231,6 +231,7 @@ my %vnconfig = ( "vnodeid" => $vnodeid,
"ifconfig" => undef,
"ldconfig" => undef,
"tunconfig" => undef,
"attributes"=> undef,
);
sub VNCONFIG($) { return $vnconfig{'config'}->{$_[0]}; }
......@@ -272,6 +273,7 @@ $nodeuuid = $vnodeid if (!defined($nodeuuid));
my %tmp;
my @tmp;
my $tmp;
my %attrs;
fatal("Could not get vnode config for $vnodeid")
if (getgenvnodeconfig(\%tmp));
......@@ -289,6 +291,10 @@ fatal("gettunnelconfig($vnodeid): $!")
if (gettunnelconfig(\$tmp));
$vnconfig{"tunconfig"} = $tmp;
fatal("getnodeattributes($vnodeid): $!")
if (getnodeattributes(\%attrs));
$vnconfig{"attributes"} = \%attrs;
if ($debug) {
print "VN Config:\n";
print Dumper(\%vnconfig);
......
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