Commit f41db731 authored by Leigh Stoller's avatar Leigh Stoller

Minor tweak to skip wires that are "Unused" in the shared node experiment.

parent 3024521a
...@@ -167,6 +167,7 @@ sub wire_type($) { return $_[0]->{'WIRES'}->{'type'}; } ...@@ -167,6 +167,7 @@ sub wire_type($) { return $_[0]->{'WIRES'}->{'type'}; }
sub switch_id($) { return $_[0]->{'WIRES'}->{'node_id2'}; } sub switch_id($) { return $_[0]->{'WIRES'}->{'node_id2'}; }
sub switch_card($) { return $_[0]->{'WIRES'}->{'card2'}; } sub switch_card($) { return $_[0]->{'WIRES'}->{'card2'}; }
sub switch_port($) { return $_[0]->{'WIRES'}->{'port2'}; } sub switch_port($) { return $_[0]->{'WIRES'}->{'port2'}; }
sub wire_unused($) { return $_[0]->wire_type() eq "Unused" ? 1 : 0; }
# Interface State table # Interface State table
sub enabled($) { return $_[0]->{'STATE'}->{'enabled'}; } sub enabled($) { return $_[0]->{'STATE'}->{'enabled'}; }
sub tagged($) { return $_[0]->{'STATE'}->{'tagged'}; } sub tagged($) { return $_[0]->{'STATE'}->{'tagged'}; }
......
...@@ -5853,7 +5853,7 @@ sub InterpLinks($) ...@@ -5853,7 +5853,7 @@ sub InterpLinks($)
next next
if ($interface->role() ne TBDB_IFACEROLE_EXPERIMENT() || if ($interface->role() ne TBDB_IFACEROLE_EXPERIMENT() ||
!$wiredup); !$wiredup || $interface->wire_unused());
# #
# Gack. We need to make sure that we are connected to an # Gack. We need to make sure that we are connected to an
......
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