Remove dependencies from EVPN route system on unicast route system.
The route system is moving to an app, so EVPN code in the incubator
can't depend on it. I implemented an EvpnRouteTableId to remove this
dependency.
Change-Id: Id9af9fc0e0c680add1e061d0628ffdbd2a23dbde
diff --git a/incubator/api/src/main/java/org/onosproject/incubator/net/routing/EvpnRouteSet.java b/incubator/api/src/main/java/org/onosproject/incubator/net/routing/EvpnRouteSet.java
index 9530f09..adc8c1c 100644
--- a/incubator/api/src/main/java/org/onosproject/incubator/net/routing/EvpnRouteSet.java
+++ b/incubator/api/src/main/java/org/onosproject/incubator/net/routing/EvpnRouteSet.java
@@ -27,7 +27,7 @@
* A set of routes for a particular prefix in a route table.
*/
public class EvpnRouteSet {
- private final RouteTableId tableId;
+ private final EvpnRouteTableId tableId;
private final EvpnPrefix prefix;
private final Set<EvpnRoute> routes;
@@ -39,7 +39,7 @@
* @param prefix IP prefix
* @param routes routes for the given prefix
*/
- public EvpnRouteSet(RouteTableId tableId, EvpnPrefix prefix, Set<EvpnRoute>
+ public EvpnRouteSet(EvpnRouteTableId tableId, EvpnPrefix prefix, Set<EvpnRoute>
routes) {
this.tableId = checkNotNull(tableId);
this.prefix = checkNotNull(prefix);
@@ -51,7 +51,7 @@
*
* @return route table ID
*/
- public RouteTableId tableId() {
+ public EvpnRouteTableId tableId() {
return tableId;
}
@@ -84,7 +84,7 @@
return true;
}
- if (!(other instanceof RouteSet)) {
+ if (!(other instanceof EvpnRouteSet)) {
return false;
}