commit | 0a400ead8ee93724b3825c7898b98963a1c10b4c | [log] [tgz] |
---|---|---|
author | Thomas Vachuska <tom@onlab.us> | Fri Sep 04 11:25:03 2015 -0700 |
committer | Gerrit Code Review <gerrit@onlab.us> | Fri Sep 04 21:24:06 2015 +0000 |
tree | 3e211620a2e97c31e6d5651ccc8e26ed8fb59aaa | |
parent | 1651e985caed4ef66b7e98c6c84b1518d7d7ac08 [diff] |
Adding ability for Config to be backed by generic JsonNode, i.e. either ObjectNode or ArrayNode. Change-Id: I5f9ec423cd5f23f61c97a57073d9d11071c47997
diff --git a/apps/routing-api/src/main/java/org/onosproject/routing/config/BgpConfig.java b/apps/routing-api/src/main/java/org/onosproject/routing/config/BgpConfig.java index 54e2e0e..19107be 100644 --- a/apps/routing-api/src/main/java/org/onosproject/routing/config/BgpConfig.java +++ b/apps/routing-api/src/main/java/org/onosproject/routing/config/BgpConfig.java
@@ -46,7 +46,7 @@ public Set<BgpSpeakerConfig> bgpSpeakers() { Set<BgpSpeakerConfig> speakers = Sets.newHashSet(); - JsonNode speakersNode = node.get(SPEAKERS); + JsonNode speakersNode = object.get(SPEAKERS); speakersNode.forEach(jsonNode -> { Set<IpAddress> listenAddresses = Sets.newHashSet(); jsonNode.path(PEERS).forEach(addressNode ->