commit | 2165d22d1455548d4c5c591acc05d27b8bbe6e54 | [log] [tgz] |
---|---|---|
author | sangho <sangho@onlab.us> | Fri May 01 09:38:25 2015 -0700 |
committer | Gerrit Code Review <gerrit@onlab.us> | Tue May 05 19:04:03 2015 +0000 |
tree | 4b84ba2b46a27e6628f122f422a0e765775db048 | |
parent | 7cfc62084f9b831a333dde8ed5caa9bed0904c06 [diff] [blame] |
ONOS-1786: Updates group buckets when link status is changed. - Add null check for port map when creating new groups Change-Id: I92b494d91e908011f2c08be850ccde648e647a09
diff --git a/src/main/java/org/onosproject/segmentrouting/DefaultRoutingHandler.java b/src/main/java/org/onosproject/segmentrouting/DefaultRoutingHandler.java index c5bd6ba..cbad910 100644 --- a/src/main/java/org/onosproject/segmentrouting/DefaultRoutingHandler.java +++ b/src/main/java/org/onosproject/segmentrouting/DefaultRoutingHandler.java
@@ -159,6 +159,7 @@ private boolean repopulateRoutingRulesForRoutes(Set<ArrayList<DeviceId>> routes) { rulePopulator.resetCounter(); for (ArrayList<DeviceId> link: routes) { + // When only the source device is defined, reinstall routes to all other devices if (link.size() == 1) { ECMPShortestPathGraph ecmpSpg = new ECMPShortestPathGraph(link.get(0), srManager); if (populateEcmpRoutingRules(link.get(0), ecmpSpg)) {