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

Minor bug for logical wires wrt user switches.

parent 60b2bcf1
......@@ -59,6 +59,7 @@ use EmulabConstants;
use Interface;
use English;
use Node;
use Carp qw(cluck);
use Data::Dumper;
use overload ('""' => 'Stringify');
......@@ -554,7 +555,8 @@ sub LookupByTriple($$;$$)
# Now see if we really want the logical wire.
if ($node->role() eq $NODEROLE_TESTNODE && $node->isswitch()) {
if ($node->role() eq $NODEROLE_TESTNODE && $node->isswitch() &&
ref($wire) eq "Interface::LogicalWire") {
my $logwire =
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