Jonathan Hart

SDN-IP: restrict egress port from ingress port list of MP2SP intent.

The MP2SP intent doesn't support having the egress port in the in ingress
port list.

Change-Id: I84471b9fce9c1dc072f3dce3d907ba86ba65a575
...@@ -171,6 +171,7 @@ public class SdnIpFib { ...@@ -171,6 +171,7 @@ public class SdnIpFib {
171 // TODO this should be only peering interfaces 171 // TODO this should be only peering interfaces
172 interfaceService.getInterfaces().stream() 172 interfaceService.getInterfaces().stream()
173 .filter(intf -> !intf.equals(egressInterface)) 173 .filter(intf -> !intf.equals(egressInterface))
174 + .filter(intf -> !intf.connectPoint().equals(egressPort))
174 .forEach(intf -> { 175 .forEach(intf -> {
175 ingressInterfaces.add(intf); 176 ingressInterfaces.add(intf);
176 ConnectPoint ingressPort = intf.connectPoint(); 177 ConnectPoint ingressPort = intf.connectPoint();
......