Provide Add Path support for all AFI/SAFI
[bgpcep.git] / bgp / path-selection-mode / src / main / java / org / opendaylight / protocol / bgp / mode / api / PathSelectionMode.java
index 97e408a3ba0ce25704d98577b1b584b7c71a6642..e468f1f2e981f78b7734a14984645df2ee0f6dac 100644 (file)
@@ -15,6 +15,18 @@ public interface PathSelectionMode extends AutoCloseable {
      *
      * @param isComplex true if is complex
      * @return ComplexRouteEntry if is complex otherwise a SimpleRouteEntry
+     * @deprecated All routes are complex.
      */
-    @Nonnull RouteEntry createRouteEntry(boolean isComplex);
+    @Deprecated
+    default @Nonnull RouteEntry createRouteEntry(boolean isComplex) {
+        return createRouteEntry();
+    }
+
+    /**
+     * Create a RouteEntry.
+     *
+     * @return ComplexRouteEntry if is complex otherwise a SimpleRouteEntry
+     */
+    @Nonnull
+    RouteEntry createRouteEntry();
 }