Prioritize certain type of routes among others
FPM, STATIC and configured subnets go to high priority batch, while others (e.g. DHCP) go to low priority batch
Change-Id: I8dcef67945c31bd0eab869510bea0f1f278b2925
diff --git a/app/src/main/java/org/onosproject/segmentrouting/SegmentRoutingManager.java b/app/src/main/java/org/onosproject/segmentrouting/SegmentRoutingManager.java
index eebb12a..7319e56 100644
--- a/app/src/main/java/org/onosproject/segmentrouting/SegmentRoutingManager.java
+++ b/app/src/main/java/org/onosproject/segmentrouting/SegmentRoutingManager.java
@@ -242,7 +242,7 @@
public TopologyService topologyService;
@Reference(cardinality = ReferenceCardinality.MANDATORY)
- RouteService routeService;
+ public RouteService routeService;
@Reference(cardinality = ReferenceCardinality.MANDATORY)
public NetworkConfigRegistry cfgService;
@@ -1223,7 +1223,7 @@
* @param resolvedRoute resolved route
* @return locations of nexthop. Might be empty if next hop is not found
*/
- Set<ConnectPoint> nextHopLocations(ResolvedRoute resolvedRoute) {
+ public Set<ConnectPoint> nextHopLocations(ResolvedRoute resolvedRoute) {
HostId hostId = HostId.hostId(resolvedRoute.nextHopMac(), resolvedRoute.nextHopVlan());
return Optional.ofNullable(hostService.getHost(hostId))
.map(Host::locations).orElse(Sets.newHashSet())