Compare ConnectPoints rather than Interfaces.

Now we can have multiple Interfaces per port, and the old code results in an
intent using the same port for ingress and egress.

Change-Id: I9f9ad396a0c6e7d31d654896f31c59a34240f82f
This commit is contained in:
Jonathan Hart 2014-11-12 11:05:40 -08:00
parent c31d569493
commit 2e3eef3e81

View File

@ -598,7 +598,7 @@ public class Router implements RouteListener {
Set<ConnectPoint> ingressPorts = new HashSet<>();
for (Interface intf : interfaceService.getInterfaces()) {
if (!intf.equals(egressInterface)) {
if (!intf.connectPoint().equals(egressInterface.connectPoint())) {
ConnectPoint srcPort = intf.connectPoint();
ingressPorts.add(srcPort);
}