commit | 80f3e18c6155bb812419913ee6bfd12c9cbcfdf2 | [log] [tgz] |
---|---|---|
author | Pavlin Radoslavov <pavlin@onlab.us> | Mon Dec 15 10:46:18 2014 -0800 |
committer | Pavlin Radoslavov <pavlin@onlab.us> | Mon Dec 15 21:44:26 2014 +0000 |
tree | 4e211ef8e59c4d0b70c9e1087195159fc7a78c64 | |
parent | 2b217144a9a70e0133b8decb39a2c02436045c51 [diff] [blame] |
Refactor the BGP code in the SDN-IP application: * Resolves ONOS-476 * Moved the BGP message-specific processing from class BgpSession to per-message type classes: BgpKeepalive, BgpNotification, BgpOpen, BgpUpdate * Minor modifications in some of the methods or BGP-specific API to accomodate the above change. No functional changes. Change-Id: I95df128fa31c60397a279aaca25a487b7991a6e1
diff --git a/apps/sdnip/src/main/java/org/onosproject/sdnip/cli/BgpRoutesListCommand.java b/apps/sdnip/src/main/java/org/onosproject/sdnip/cli/BgpRoutesListCommand.java index 43673c3..d7b7cc7 100644 --- a/apps/sdnip/src/main/java/org/onosproject/sdnip/cli/BgpRoutesListCommand.java +++ b/apps/sdnip/src/main/java/org/onosproject/sdnip/cli/BgpRoutesListCommand.java
@@ -81,7 +81,7 @@ // Print the routes if (foundBgpSession != null) { - printRoutes(foundBgpSession.getBgpRibIn()); + printRoutes(foundBgpSession.bgpRibIn().values()); } else { printRoutes(service.getBgpRoutes()); }