Commit fb32c5b6 authored by Jonathon Duerig's avatar Jonathon Duerig

Only set mac address if interface is defined.

parent a7eb6931
......@@ -3398,7 +3398,9 @@ sub SliverWorkAux($$$$$$$)
my $outref;
my $sliverName = "sliver_urn";
my $macName = "MAC";
my $macAddress = $interface->mac();
my $macAddress = undef;
$macAddress = $interface->mac()
if (defined($interface));
my $ipAddress;
if (defined($vinterface)) {
$ipAddress = $vinterface->IP();
......
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