d120f8b57a9497bcd3716bf1c8290f9a3bdc09bd
[bgpcep.git] / bgp / rib-impl / src / main / java / org / opendaylight / protocol / bgp / rib / impl / spi / RIBSupportContextRegistry.java
1 /*
2  * Copyright (c) 2015 Cisco Systems, Inc. and others.  All rights reserved.
3  *
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
7  */
8 package org.opendaylight.protocol.bgp.rib.impl.spi;
9
10 import javax.annotation.Nullable;
11 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.rib.rev171207.rib.TablesKey;
12 import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeIdentifierWithPredicates;
13
14 public interface RIBSupportContextRegistry {
15
16     /**
17      * Acquire a RIB Support Context for a AFI/SAFI combination.
18      * @param key AFI/SAFI key
19      * @return RIBSupport instance, or null if the AFI/SAFI is
20      *         not implemented.
21     */
22     @Nullable RIBSupportContext getRIBSupportContext(TablesKey key);
23
24     /**
25      * Acquire a RIB Support Context for a AFI/SAFI combination.
26      * @param key Tables key with AFI/SAFI key
27      * @return RIBSupport instance, or null if the AFI/SAFI is
28      *         not implemented.
29     */
30     @Nullable RIBSupportContext getRIBSupportContext(NodeIdentifierWithPredicates key);
31 }