mirror of
https://github.com/opennetworkinglab/onos.git
synced 2025-10-17 18:32:28 +02:00
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:
parent
c31d569493
commit
2e3eef3e81
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user