Class RIBSupportContext

java.lang.Object
org.opendaylight.protocol.bgp.rib.impl.spi.RIBSupportContext

public abstract class RIBSupportContext extends Object
RIBSupport wrapper which provides additional functionality such as logic to update / remove routes using Binding DTOs for BGP messages.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    final void
    createEmptyTableStructure(org.opendaylight.mdsal.dom.api.DOMDataTreeWriteOperations tx, org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier tablePath)
    Create specified Rib table structure using supplied transaction.
    abstract void
    deleteRoutes(org.opendaylight.mdsal.dom.api.DOMDataTreeWriteOperations tx, org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier tablePath, MpUnreachNlri nlri)
    Removes supplied routes from RIB table using supplied transaction.
    abstract @NonNull RIBSupport
    Returns backing RIB support.
    abstract Collection<org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeIdentifierWithPredicates>
    writeRoutes(org.opendaylight.mdsal.dom.api.DOMDataTreeWriteOperations tx, org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier tableId, MpReachNlri nlri, Attributes attributes)
    Writes supplied routes and attributes to RIB table using supplied transaction.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • RIBSupportContext

      public RIBSupportContext()
  • Method Details

    • ribSupport

      public abstract @NonNull RIBSupport ribSupport()
      Returns backing RIB support.
      Returns:
      backing RIB support
    • createEmptyTableStructure

      public final void createEmptyTableStructure(org.opendaylight.mdsal.dom.api.DOMDataTreeWriteOperations tx, org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier tablePath)
      Create specified Rib table structure using supplied transaction.
      Parameters:
      tx - Transaction to to be used
      tablePath - Instance Identifier of table to be cleared.
    • deleteRoutes

      public abstract void deleteRoutes(org.opendaylight.mdsal.dom.api.DOMDataTreeWriteOperations tx, org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier tablePath, MpUnreachNlri nlri)
      Removes supplied routes from RIB table using supplied transaction.
      Parameters:
      tx - Transaction to be used
      tablePath - Instance Identifier of table to be updated
      nlri - UnreachNlri which contains routes to be removed.
    • writeRoutes

      public abstract Collection<org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeIdentifierWithPredicates> writeRoutes(org.opendaylight.mdsal.dom.api.DOMDataTreeWriteOperations tx, org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier tableId, MpReachNlri nlri, Attributes attributes)
      Writes supplied routes and attributes to RIB table using supplied transaction.
      Parameters:
      tx - Transaction to be used
      tableId - Instance Identifier of table to be updated
      nlri - ReachNlri which contains routes to be written.
      attributes - Attributes which should be written.
      Returns:
      Set of processed route key identifiers