Provide Add Path support for all AFI/SAFI
[bgpcep.git] / bgp / path-selection-mode / src / main / java / org / opendaylight / protocol / bgp / mode / impl / add / n / paths / AddPathBestNPathSelection.java
index 9c4e88f25f8336b240e855fbe84374b7c2ef65bc..6fae195141f202ab9dec61f9acb729ea6c0faa9b 100644 (file)
@@ -29,12 +29,7 @@ public final class AddPathBestNPathSelection implements PathSelectionMode {
     }
 
     @Override
-    public RouteEntry createRouteEntry(final boolean isComplex) {
-        return isComplex ? new ComplexRouteEntry(this.getNBestPaths(), this.peerTracker)
-                : new SimpleRouteEntry(this.getNBestPaths(), this.peerTracker);
-    }
-
-    public long getNBestPaths() {
-        return this.npaths;
+    public RouteEntry createRouteEntry() {
+        return new ComplexRouteEntry(this.npaths, this.peerTracker);
     }
 }
\ No newline at end of file