Commit b2c7ec18 authored by Leigh Stoller's avatar Leigh Stoller

Tweak previous revision.

parent 75ae3532
......@@ -141,7 +141,7 @@ sub type($) { return field($_[0], 'interface_type'); }
sub mask($) { return field($_[0], 'mask'); }
sub uuid($) { return field($_[0], 'uuid'); }
# Wires table
sub wiredup($) { return exists($_[0]->{'WIRES'}); }
sub wiredup($) { return (exists($_[0]->{'WIRES'}) ? 1 : 0); }
sub wire_type($) { return $_[0]->{'WIRES'}->{'type'}; }
sub switch_id($) { return $_[0]->{'WIRES'}->{'node_id2'}; }
sub switch_card($) { return $_[0]->{'WIRES'}->{'card2'}; }
......
......@@ -4653,12 +4653,13 @@ sub InterpLinks($)
return -1;
}
foreach my $interface (@interfaces) {
my $iface = $interface->iface();
my $type = $interface->type();
my $iface = $interface->iface();
my $type = $interface->type();
my $wiredup = $interface->wiredup();
next
if ($interface->role() ne TBDB_IFACEROLE_EXPERIMENT() ||
!$interface->wiredup());
!$wiredup);
$protovlan->AddMember($pnodename, $iface);
......
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