diff options
author | Ashlee Young <ashlee@wildernessvoice.com> | 2015-11-12 12:46:25 -0800 |
---|---|---|
committer | Ashlee Young <ashlee@wildernessvoice.com> | 2015-11-12 12:46:25 -0800 |
commit | 03974824abae35128f53f5a4af9a4ed8f573601a (patch) | |
tree | 4f5da69f32b7ee0dfb75e827b82212bd6c82fafe /framework/src/onos/apps/routing | |
parent | baac58c7c50e6f89eb0520e3f5b0e83a69839bd3 (diff) |
Updating onos src up to commit id fdb426e7ca9232692b0b6c335c79fc9c5a4e341f
Change-Id: I78f29f15b39f965b61154d5f8d576ed1a9481b9b
Signed-off-by: Ashlee Young <ashlee@wildernessvoice.com>
Diffstat (limited to 'framework/src/onos/apps/routing')
-rw-r--r-- | framework/src/onos/apps/routing/src/main/java/org/onosproject/routing/cli/BgpSpeakersListCommand.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/framework/src/onos/apps/routing/src/main/java/org/onosproject/routing/cli/BgpSpeakersListCommand.java b/framework/src/onos/apps/routing/src/main/java/org/onosproject/routing/cli/BgpSpeakersListCommand.java index 23d7086c..064080fd 100644 --- a/framework/src/onos/apps/routing/src/main/java/org/onosproject/routing/cli/BgpSpeakersListCommand.java +++ b/framework/src/onos/apps/routing/src/main/java/org/onosproject/routing/cli/BgpSpeakersListCommand.java @@ -50,13 +50,17 @@ public class BgpSpeakersListCommand extends AbstractShellCommand { ApplicationId appId = coreService.getAppId(RoutingService.ROUTER_APP_ID); BgpConfig config = configService.getConfig(appId, BgpConfig.class); + if (config == null) { + print("No speakers configured"); + return; + } List<BgpConfig.BgpSpeakerConfig> bgpSpeakers = Lists.newArrayList(config.bgpSpeakers()); Collections.sort(bgpSpeakers, SPEAKERS_COMPARATOR); - if (config == null || config.bgpSpeakers().isEmpty()) { + if (config.bgpSpeakers().isEmpty()) { print("No speakers configured"); } else { bgpSpeakers.forEach( |