Bug-4827: BGP Add-Path OpenConfig Support
[bgpcep.git] / bgp / path-selection-mode / src / main / java / org / opendaylight / protocol / bgp / mode / impl / add / n / paths / AddPathBestNPathSelection.java
index 44197e495dc8b195449e9b0ee8671f877f7ea478..5e05237bd9eefdcfbd1048850f459e9a4ceaf429 100644 (file)
@@ -26,9 +26,13 @@ public class AddPathBestNPathSelection implements PathSelectionMode {
     @Override
     public RouteEntry createRouteEntry(final boolean isComplex) {
         if (isComplex) {
-            return new ComplexRouteEntry(this.nBestPaths);
+            return new ComplexRouteEntry(this.getNBestPaths());
         } else {
-            return new SimpleRouteEntry(this.nBestPaths);
+            return new SimpleRouteEntry(this.getNBestPaths());
         }
     }
+
+    public Long getNBestPaths() {
+        return nBestPaths;
+    }
 }
\ No newline at end of file