2 * Copyright (c) 2018 AT&T Intellectual Property. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
8 package org.opendaylight.protocol.bgp.rib.spi.entry;
10 import static java.util.Objects.requireNonNull;
12 import java.util.List;
13 import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeIdentifierWithPredicates;
16 * Routes to be removed from Data Store.
18 * @author Claudio D. Gasparini
20 public abstract class StaleBestPathRoute {
21 private final NodeIdentifierWithPredicates nonAddPathRouteKeyIdentifier;
23 protected StaleBestPathRoute(final NodeIdentifierWithPredicates nonAddPathRouteKeyIdentifier) {
24 this.nonAddPathRouteKeyIdentifier = requireNonNull(nonAddPathRouteKeyIdentifier);
27 public final NodeIdentifierWithPredicates getNonAddPathRouteKeyIdentifier() {
28 return nonAddPathRouteKeyIdentifier;
32 * Route Identifier List of withdrawn routes to advertize peers supporting additional Path.
34 * @return Route Identifier List
36 public abstract List<NodeIdentifierWithPredicates> getStaleRouteKeyIdentifiers();
39 * Route Identifier List of withdrawn routes to advertize peers supporting additional Path.
41 * @return Route Identifier List
43 public abstract List<NodeIdentifierWithPredicates> getAddPathRouteKeyIdentifiers();
46 * Route Identifier of withdrawn routes to advertize peers no supporting additional Path.
48 * @return Route Identifier
50 public abstract boolean isNonAddPathBestPathNew();