Fix for setting up peer paths where BGP speakers don't peer with all peers.
Returning prevents any further paths being set up, even though this isn't
an error condition.
Change-Id: I13eb4b3021c78f437dcfd2fa715bb4568e6046d1
diff --git a/apps/sdnip/src/main/java/org/onlab/onos/sdnip/PeerConnectivityManager.java b/apps/sdnip/src/main/java/org/onlab/onos/sdnip/PeerConnectivityManager.java
index ec0f48a..bbc96a1 100644
--- a/apps/sdnip/src/main/java/org/onlab/onos/sdnip/PeerConnectivityManager.java
+++ b/apps/sdnip/src/main/java/org/onlab/onos/sdnip/PeerConnectivityManager.java
@@ -136,7 +136,7 @@
if (bgpdAddress == null) {
log.debug("There is no interface IP address for bgpPeer: {}"
+ " on interface {}", bgpPeer, bgpPeer.connectPoint());
- return;
+ continue;
}
IpAddress bgpdPeerAddress = bgpPeer.ipAddress();
@@ -270,7 +270,7 @@
log.debug("There is no IP address for bgpPeer: {} on "
+ "interface port: {}", bgpPeer,
bgpPeer.connectPoint());
- return;
+ continue;
}
IpAddress bgpdPeerAddress = bgpPeer.ipAddress();