-public interface RIB {
- AsNumber getLocalAs();
- Ipv4Address getBgpIdentifier();
- List<? extends BgpTableType> getLocalTables();
-
- void initTable(Peer bgpPeer, TablesKey key);
- void clearTable(Peer bgpPeer, TablesKey key);
- void updateTables(Peer bgpPeer, Update message);
-
- BGPDispatcher getDispatcher();
- ReconnectStrategyFactory getTcpStrategyFactory();
- ReconnectStrategyFactory getSessionStrategyFactory();
+public interface RIB extends RibReference, RibOutRefresh {
+ /**
+ * RIB AS.
+ *
+ * @return AS
+ */
+ AsNumber getLocalAs();
+
+ BgpId getBgpIdentifier();
+
+ /**
+ * Return the set of table identifiers which are accepted and advertised
+ * by this RIB instance.
+ *
+ * @return A set of identifiers.
+ */
+ @NonNull Set<? extends BgpTableType> getLocalTables();
+
+ BGPDispatcher getDispatcher();
+
+ /**
+ * Allocate a new transaction chain for use with a peer.
+ *
+ * @return A new transaction chain.
+ */
+ DOMTransactionChain createPeerDOMChain();
+
+ /**
+ * Return the RIB extensions available to the RIB instance.
+ *
+ * @return RIB extensions handle.
+ */
+ RIBExtensionConsumerContext getRibExtensions();
+
+ /**
+ * Return the RIB extensions available to the RIB instance
+ * with additional RIB specific context such as
+ * translation between DOM and Binding.
+ *
+ * @return RIB extensions handle.
+ */
+ RIBSupportContextRegistry getRibSupportContext();
+
+ /**
+ * Return YangInstanceIdentifier of BGP Rib with its RibId.
+ *
+ * @return YangInstanceIdentifier
+ */
+ YangInstanceIdentifier getYangRibId();
+
+ CodecsRegistry getCodecsRegistry();
+
+ /**
+ * Return instance of DOMDataTreeChangeService, where consumer can register to
+ * listen on DOM data changes.
+ *
+ * @return DOMDataTreeChangeService
+ */
+ DataTreeChangeExtension getService();
+
+ /**
+ * Returns true if RIB supports table.
+ *
+ * @param tableKey table
+ * @return true if supported
+ */
+ boolean supportsTable(TablesKey tableKey);
+
+ Set<TablesKey> getLocalTablesKeys();
+
+ /**
+ * Return Policies Container.
+ *
+ * @return policies
+ */
+ BGPRibRoutingPolicy getRibPolicies();
+
+ /**
+ * Returns peer tracker for the rib.
+ *
+ * @return peer tracker
+ */
+ BGPPeerTracker getPeerTracker();