Commit f8c59dd4 authored by Robert Ricci's avatar Robert Ricci
Browse files

Removed check that required LANs to only link to delay nodes - this is a

bogus restriction.
parent bc7995da
...@@ -317,11 +317,15 @@ sub get_macs { ...@@ -317,11 +317,15 @@ sub get_macs {
push(@$macs,@{$vlanmap{"ddst_$_[0]"}}); push(@$macs,@{$vlanmap{"ddst_$_[0]"}});
} }
# XXX - Not sure if this is correct # XXX - Not sure if this is correct
# XXX - ricci: still not sure if it is! The old code checked to make sure
# that one of the nodes was a delay node - I'm not sure why this was desirable,
# but it broke things
if (defined($links{$_[0]})) { if (defined($links{$_[0]})) {
my($src,$dst) = @{$links{$_[0]}}; my($src,$dst) = @{$links{$_[0]}};
if (&islan($src) && defined($delays{$dst})) { if (&islan($src)) {
push(@$macs,@{$vlanmap{$src}}); push(@$macs,@{$vlanmap{$src}});
} elsif (&islan($dst) && defined($delays{$src})) { } elsif (&islan($dst)) {
push(@$macs,@{$vlanmap{$dst}}); push(@$macs,@{$vlanmap{$dst}});
} }
} }
......
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