commit | de0891214351eb11e3b0ac8d8ce8816e60fbb481 | [log] [tgz] |
---|---|---|
author | Jonathan Hart <jono@onlab.us> | Wed Dec 03 22:33:14 2014 -0800 |
committer | Jonathan Hart <jono@onlab.us> | Wed Dec 03 22:33:14 2014 -0800 |
tree | cd2aba0207c0cdbf048fd843db3611778476748a | |
parent | 51372183cea14dd1139fce3b47636f332e0a0176 [diff] |
Minor refactoring Change-Id: I57198890b5fd833ba0f3368197d074a5fdc1d3e1
diff --git a/apps/sdnip/src/main/java/org/onosproject/sdnip/PeerConnectivityManager.java b/apps/sdnip/src/main/java/org/onosproject/sdnip/PeerConnectivityManager.java index c642166..44366b0 100644 --- a/apps/sdnip/src/main/java/org/onosproject/sdnip/PeerConnectivityManager.java +++ b/apps/sdnip/src/main/java/org/onosproject/sdnip/PeerConnectivityManager.java
@@ -77,9 +77,13 @@ public void start() { if (interfaceService.getInterfaces().isEmpty()) { log.warn("No interfaces found in configuration file"); - } else if (configService.getBgpPeers().isEmpty()) { + } + + if (configService.getBgpPeers().isEmpty()) { log.warn("No BGP peers found in configuration file"); - } else if (configService.getBgpSpeakers().isEmpty()) { + } + + if (configService.getBgpSpeakers().isEmpty()) { log.error("No BGP speakers found in configuration file"); }