Propagate depreferenced status through AbstractAdvertizedRoute
[bgpcep.git] / bgp / path-selection-mode / src / main / java / org / opendaylight / protocol / bgp / mode / spi / AbstractBestPath.java
index 2f124da3cd69a16c46da38ba4293ce6dfd9a4ac4..74e6baed38bd5b9d56a69618937101e56474e067 100644 (file)
@@ -5,7 +5,6 @@
  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
  * and is available at http://www.eclipse.org/legal/epl-v10.html
  */
-
 package org.opendaylight.protocol.bgp.mode.spi;
 
 import static java.util.Objects.requireNonNull;
@@ -35,6 +34,11 @@ public abstract class AbstractBestPath implements BestPath {
         return this.state.getAttributes();
     }
 
+    @Override
+    public final boolean isDepreferenced() {
+        return this.state.isDepreferenced();
+    }
+
     @Override
     public final String toString() {
         return addToStringAttributes(MoreObjects.toStringHelper(this)).toString();