Extract routeKey/pathId from the identifier
[bgpcep.git] / bgp / extensions / linkstate / src / main / java / org / opendaylight / protocol / bgp / linkstate / impl / LinkstateRIBSupport.java
index a35fd31f363cae9cf06434a735f85ca8b72d2db2..41c611cf11c690327cfdfdff405fa0b71ffc5abc 100644 (file)
@@ -177,4 +177,14 @@ public final class LinkstateRIBSupport
     public List<LinkstateRoute> routesFromContainer(final LinkstateRoutes container) {
         return container.getLinkstateRoute();
     }
+
+    @Override
+    public PathId extractPathId(final LinkstateRouteKey routeListKey) {
+        return routeListKey.getPathId();
+    }
+
+    @Override
+    public String extractRouteKey(final LinkstateRouteKey routeListKey) {
+        return routeListKey.getRouteKey();
+    }
 }