BGPCEP-754: Start using default import policy
[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.protocol.bgp.rib.spi.RIBSupport;
12 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.rib.rev171207.rib.TablesKey;
13 import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeIdentifierWithPredicates;
14
15 public interface RIBSupportContextRegistry {
16
17     /**
18      * Acquire a RIB Support for a AFI/SAFI combination.
19      *
20      * @param key AFI/SAFI key
21      * @return RIBSupport instance, or null if the AFI/SAFI is
22      * not implemented.
23      */
24     @Nullable
25     RIBSupport getRIBSupport(TablesKey key);
26
27     /**
28      * Acquire a RIB Support Context for a AFI/SAFI combination.
29      *
30      * @param key AFI/SAFI key
31      * @return RIBSupport instance, or null if the AFI/SAFI is
32      * not implemented.
33      */
34     @Nullable
35     RIBSupportContext getRIBSupportContext(TablesKey key);
36
37     /**
38      * Acquire a RIB Support Context for a AFI/SAFI combination.
39      *
40      * @param key Tables key with AFI/SAFI key
41      * @return RIBSupport instance, or null if the AFI/SAFI is
42      * not implemented.
43      */
44     @Nullable
45     RIBSupportContext getRIBSupportContext(NodeIdentifierWithPredicates key);
46 }