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 org.eclipse.jdt.annotation.NonNull;
11 import org.opendaylight.protocol.bgp.rib.spi.BGPPeerTracker;
12 import org.opendaylight.protocol.bgp.rib.spi.RIBSupport;
13 import org.opendaylight.protocol.bgp.rib.spi.policy.BGPRibRoutingPolicy;
14 import org.opendaylight.yang.gen.v1.http.openconfig.net.yang.bgp.types.rev151009.AfiSafiType;
15 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.rib.rev180329.Route;
16 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.rib.rev180329.rib.Tables;
17 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.rib.rev180329.rib.TablesKey;
18 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.rib.rev180329.rib.tables.Routes;
19 import org.opendaylight.yangtools.yang.binding.ChildOf;
20 import org.opendaylight.yangtools.yang.binding.ChoiceIn;
21 import org.opendaylight.yangtools.yang.binding.DataObject;
22 import org.opendaylight.yangtools.yang.binding.Identifiable;
23 import org.opendaylight.yangtools.yang.binding.Identifier;
24 import org.opendaylight.yangtools.yang.binding.KeyedInstanceIdentifier;
27 * Container wrapper for all dependencies related to Route Entry, required for process and storage.
29 public interface RouteEntryDependenciesContainer {
31 * Returns rib support.
35 <C extends Routes & DataObject & ChoiceIn<Tables>, S extends ChildOf<? super C>,
36 R extends Route & ChildOf<? super S> & Identifiable<I>,
37 I extends Identifier<R>> @NonNull RIBSupport<C, S, R, I> getRIBSupport();
40 * Returns the table key(AFI/SAFI) corresponding to the Route Entry.
44 @NonNull TablesKey getLocalTablesKey();
47 * Returns the AfiSafiType(AFI/SAFI) corresponding to the Route Entry.
51 @NonNull Class<? extends AfiSafiType> getAfiSafType();
54 * Returns the loc-rib table to be updated and to which corresponds this Route Entry.
56 * @return InstanceIdentifier containing the path to loc-rib table.
58 @NonNull KeyedInstanceIdentifier<Tables, TablesKey> getLocRibTableTarget();
61 * Return routing policies defined per RIB.
63 * @return BGPRibRoutingPolicy
65 @NonNull BGPRibRoutingPolicy getRoutingPolicies();
67 @NonNull BGPPeerTracker getPeerTracker();