public final class RibImpl extends Object implements RIB, BGPRibStateConsumer, AutoCloseable
| Constructor and Description |
|---|
RibImpl(RIBExtensionConsumerContext contextProvider,
BGPDispatcher dispatcher,
BGPRibRoutingPolicyFactory policyProvider,
org.opendaylight.mdsal.binding.dom.codec.api.BindingCodecTreeFactory codecTreeFactory,
org.opendaylight.controller.md.sal.dom.api.DOMDataBroker domBroker,
org.opendaylight.controller.md.sal.binding.api.DataBroker dataBroker,
org.opendaylight.mdsal.dom.api.DOMSchemaService domSchemaService) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
org.opendaylight.controller.md.sal.binding.api.BindingTransactionChain |
createPeerChain(org.opendaylight.controller.md.sal.common.api.data.TransactionChainListener listener)
Allocate a new transaction chain for use with a peer.
|
org.opendaylight.controller.md.sal.dom.api.DOMTransactionChain |
createPeerDOMChain(org.opendaylight.controller.md.sal.common.api.data.TransactionChainListener listener)
Allocate a new transaction chain for use with a peer.
|
BgpId |
getBgpIdentifier() |
CodecsRegistry |
getCodecsRegistry() |
org.opendaylight.controller.md.sal.binding.api.DataBroker |
getDataBroker()
Return DataBroker.
|
BGPDispatcher |
getDispatcher() |
org.opendaylight.yangtools.yang.binding.KeyedInstanceIdentifier<Rib,RibKey> |
getInstanceIdentifier()
Returns the InstanceIdentifier of the object.
|
org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.AsNumber |
getLocalAs()
RIB AS.
|
Set<? extends BgpTableType> |
getLocalTables()
Return the set of table identifiers which are accepted and advertised
by this RIB instance.
|
Set<TablesKey> |
getLocalTablesKeys() |
BGPPeerTracker |
getPeerTracker()
Returns peer tracker for the rib.
|
RIBExtensionConsumerContext |
getRibExtensions()
Return the RIB extensions available to the RIB instance.
|
BGPRibRoutingPolicy |
getRibPolicies()
Return Policies Container.
|
BGPRibState |
getRIBState()
Returns RIB Operational State.
|
RIBSupportContextRegistry |
getRibSupportContext()
Return the RIB extensions available to the RIB instance
with additional RIB specific context such as
translation between DOM and Binding.
|
org.opendaylight.controller.md.sal.dom.api.DOMDataTreeChangeService |
getService()
Return instance of DOMDataTreeChangeService, where consumer can register to
listen on DOM data changes.
|
org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier |
getYangRibId()
Return YangInstanceIdentifier of BGP Rib with its RibId.
|
void |
instantiateServiceInstance() |
void |
refreshTable(TablesKey tk,
PeerId peerId)
Triggers the reevaluation.
|
boolean |
supportsTable(TablesKey tableKey)
Returns true if RIB supports table.
|
String |
toString() |
public RibImpl(RIBExtensionConsumerContext contextProvider, BGPDispatcher dispatcher, BGPRibRoutingPolicyFactory policyProvider, org.opendaylight.mdsal.binding.dom.codec.api.BindingCodecTreeFactory codecTreeFactory, org.opendaylight.controller.md.sal.dom.api.DOMDataBroker domBroker, org.opendaylight.controller.md.sal.binding.api.DataBroker dataBroker, org.opendaylight.mdsal.dom.api.DOMSchemaService domSchemaService)
public org.opendaylight.yangtools.yang.binding.KeyedInstanceIdentifier<Rib,RibKey> getInstanceIdentifier()
InstanceReferencegetInstanceIdentifier in interface RibReferencegetInstanceIdentifier in interface InstanceReference<Rib>public org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.AsNumber getLocalAs()
RIBgetLocalAs in interface RIBpublic BgpId getBgpIdentifier()
getBgpIdentifier in interface RIBpublic Set<? extends BgpTableType> getLocalTables()
RIBgetLocalTables in interface RIBpublic BGPDispatcher getDispatcher()
getDispatcher in interface RIBpublic org.opendaylight.controller.md.sal.dom.api.DOMTransactionChain createPeerDOMChain(org.opendaylight.controller.md.sal.common.api.data.TransactionChainListener listener)
RIBcreatePeerDOMChain in interface RIBlistener - TransactionChainListener handling recoverypublic org.opendaylight.controller.md.sal.binding.api.BindingTransactionChain createPeerChain(org.opendaylight.controller.md.sal.common.api.data.TransactionChainListener listener)
RIBcreatePeerChain in interface RIBlistener - TransactionChainListener handling recoverypublic RIBExtensionConsumerContext getRibExtensions()
RIBgetRibExtensions in interface RIBpublic RIBSupportContextRegistry getRibSupportContext()
RIBgetRibSupportContext in interface RIBpublic org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier getYangRibId()
RIBgetYangRibId in interface RIBpublic CodecsRegistry getCodecsRegistry()
getCodecsRegistry in interface RIBpublic org.opendaylight.controller.md.sal.dom.api.DOMDataTreeChangeService getService()
RIBgetService in interface RIBpublic org.opendaylight.controller.md.sal.binding.api.DataBroker getDataBroker()
RIBgetDataBroker in interface RIBpublic void close()
close in interface AutoCloseablepublic Set<TablesKey> getLocalTablesKeys()
getLocalTablesKeys in interface RIBpublic boolean supportsTable(TablesKey tableKey)
RIBsupportsTable in interface RIBtableKey - tablepublic BGPRibRoutingPolicy getRibPolicies()
RIBgetRibPolicies in interface RIBpublic BGPPeerTracker getPeerTracker()
RIBgetPeerTracker in interface RIBpublic BGPRibState getRIBState()
BGPRibStateConsumergetRIBState in interface BGPRibStateConsumerpublic void instantiateServiceInstance()
public void refreshTable(TablesKey tk, PeerId peerId)
RibOutRefreshrefreshTable in interface RibOutRefreshtk - table key of table route paths to be reevaluatedpeerId - peer to advertize / withdraw paths after reevaluationCopyright © 2019 OpenDaylight. All rights reserved.