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 RIBSupportContext()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract void
createEmptyTableStructure(org.opendaylight.mdsal.dom.api.DOMDataTreeWriteTransaction tx, org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier tableId)
Create specified Rib table structure using supplied transaction.abstract void
deleteRoutes(org.opendaylight.mdsal.dom.api.DOMDataTreeWriteTransaction tx, org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier tableId, MpUnreachNlri nlri)
Removes supplied routes from RIB table using supplied transaction.abstract <C extends Routes & org.opendaylight.yangtools.yang.binding.DataObject & org.opendaylight.yangtools.yang.binding.ChoiceIn<Tables>,S extends org.opendaylight.yangtools.yang.binding.ChildOf<? super C>,R extends Route & org.opendaylight.yangtools.yang.binding.ChildOf<? super S> & org.opendaylight.yangtools.yang.binding.Identifiable<I>,I extends org.opendaylight.yangtools.yang.binding.Identifier<R>>
RIBSupport<C,S,R,I>getRibSupport()
Returns backing RIB support.abstract Collection<org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeIdentifierWithPredicates>
writeRoutes(org.opendaylight.mdsal.dom.api.DOMDataTreeWriteTransaction tx, org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier tableId, MpReachNlri nlri, Attributes attributes)
Writes supplied routes and attributes to RIB table using supplied transaction.
-
-
-
Method Detail
-
createEmptyTableStructure
public abstract void createEmptyTableStructure(org.opendaylight.mdsal.dom.api.DOMDataTreeWriteTransaction tx, org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier tableId)
Create specified Rib table structure using supplied transaction.- Parameters:
tx
- Transaction to to be usedtableId
- Instance Identifier of table to be cleared.
-
deleteRoutes
public abstract void deleteRoutes(org.opendaylight.mdsal.dom.api.DOMDataTreeWriteTransaction tx, org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier tableId, MpUnreachNlri nlri)
Removes supplied routes from RIB table using supplied transaction.- Parameters:
tx
- Transaction to be usedtableId
- Instance Identifier of table to be updatednlri
- 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.DOMDataTreeWriteTransaction 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 usedtableId
- Instance Identifier of table to be updatednlri
- ReachNlri which contains routes to be written.attributes
- Attributes which should be written.- Returns:
- Set of processed route key identifiers
-
getRibSupport
public abstract <C extends Routes & org.opendaylight.yangtools.yang.binding.DataObject & org.opendaylight.yangtools.yang.binding.ChoiceIn<Tables>,S extends org.opendaylight.yangtools.yang.binding.ChildOf<? super C>,R extends Route & org.opendaylight.yangtools.yang.binding.ChildOf<? super S> & org.opendaylight.yangtools.yang.binding.Identifiable<I>,I extends org.opendaylight.yangtools.yang.binding.Identifier<R>> RIBSupport<C,S,R,I> getRibSupport()
Returns backing RIB support.- Returns:
- RIBSupport
-
-