java.lang.Object
org.opendaylight.protocol.bgp.rib.impl.config.RibImpl
All Implemented Interfaces:
RIB, RibOutRefresh, RibReference, BGPRibStateProvider, InstanceReference<Rib>

public final class RibImpl extends Object implements RIB, BGPRibStateProvider
  • Constructor Details

  • Method Details

    • getInstanceIdentifier

      public org.opendaylight.yangtools.yang.binding.KeyedInstanceIdentifier<Rib,RibKey> getInstanceIdentifier()
      Description copied from interface: InstanceReference
      Returns the InstanceIdentifier of the object.
      Specified by:
      getInstanceIdentifier in interface InstanceReference<Rib>
      Specified by:
      getInstanceIdentifier in interface RibReference
      Returns:
      instance identifier
    • getLocalAs

      public org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.AsNumber getLocalAs()
      Description copied from interface: RIB
      RIB AS.
      Specified by:
      getLocalAs in interface RIB
      Returns:
      AS
    • getBgpIdentifier

      public BgpId getBgpIdentifier()
      Specified by:
      getBgpIdentifier in interface RIB
    • getLocalTables

      public Set<? extends BgpTableType> getLocalTables()
      Description copied from interface: RIB
      Return the set of table identifiers which are accepted and advertised by this RIB instance.
      Specified by:
      getLocalTables in interface RIB
      Returns:
      A set of identifiers.
    • getDispatcher

      public BGPDispatcher getDispatcher()
      Specified by:
      getDispatcher in interface RIB
    • createPeerDOMChain

      public org.opendaylight.mdsal.dom.api.DOMTransactionChain createPeerDOMChain(org.opendaylight.mdsal.dom.api.DOMTransactionChainListener listener)
      Description copied from interface: RIB
      Allocate a new transaction chain for use with a peer.
      Specified by:
      createPeerDOMChain in interface RIB
      Parameters:
      listener - DOMTransactionChainListener handling recovery
      Returns:
      A new transaction chain.
    • getRibExtensions

      public RIBExtensionConsumerContext getRibExtensions()
      Description copied from interface: RIB
      Return the RIB extensions available to the RIB instance.
      Specified by:
      getRibExtensions in interface RIB
      Returns:
      RIB extensions handle.
    • getRibSupportContext

      public RIBSupportContextRegistry getRibSupportContext()
      Description copied from interface: RIB
      Return the RIB extensions available to the RIB instance with additional RIB specific context such as translation between DOM and Binding.
      Specified by:
      getRibSupportContext in interface RIB
      Returns:
      RIB extensions handle.
    • getYangRibId

      public org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier getYangRibId()
      Description copied from interface: RIB
      Return YangInstanceIdentifier of BGP Rib with its RibId.
      Specified by:
      getYangRibId in interface RIB
      Returns:
      YangInstanceIdentifier
    • getCodecsRegistry

      public CodecsRegistry getCodecsRegistry()
      Specified by:
      getCodecsRegistry in interface RIB
    • getService

      public org.opendaylight.mdsal.dom.api.DOMDataTreeChangeService getService()
      Description copied from interface: RIB
      Return instance of DOMDataTreeChangeService, where consumer can register to listen on DOM data changes.
      Specified by:
      getService in interface RIB
      Returns:
      DOMDataTreeChangeService
    • getLocalTablesKeys

      public Set<TablesKey> getLocalTablesKeys()
      Specified by:
      getLocalTablesKeys in interface RIB
    • supportsTable

      public boolean supportsTable(TablesKey tableKey)
      Description copied from interface: RIB
      Returns true if RIB supports table.
      Specified by:
      supportsTable in interface RIB
      Parameters:
      tableKey - table
      Returns:
      true if supported
    • getRibPolicies

      public BGPRibRoutingPolicy getRibPolicies()
      Description copied from interface: RIB
      Return Policies Container.
      Specified by:
      getRibPolicies in interface RIB
      Returns:
      policies
    • getPeerTracker

      public BGPPeerTracker getPeerTracker()
      Description copied from interface: RIB
      Returns peer tracker for the rib.
      Specified by:
      getPeerTracker in interface RIB
      Returns:
      peer tracker
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getRIBState

      public BGPRibState getRIBState()
      Description copied from interface: BGPRibStateProvider
      Returns RIB Operational State.
      Specified by:
      getRIBState in interface BGPRibStateProvider
      Returns:
      BGP RIB State
    • instantiateServiceInstance

      public void instantiateServiceInstance()
    • refreshTable

      public void refreshTable(TablesKey tk, PeerId peerId)
      Description copied from interface: RibOutRefresh
      Triggers the reevaluation.
      Specified by:
      refreshTable in interface RibOutRefresh
      Parameters:
      tk - table key of table route paths to be reevaluated
      peerId - peer to advertize / withdraw paths after reevaluation