Class RIBSupportContext
java.lang.Object
org.opendaylight.protocol.bgp.rib.impl.spi.RIBSupportContext
RIBSupport wrapper which provides additional functionality
 such as logic to update / remove routes using Binding DTOs
 for BGP messages.- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionabstract voidcreateEmptyTableStructure(org.opendaylight.mdsal.dom.api.DOMDataTreeWriteTransaction tx, org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier tableId) Create specified Rib table structure using supplied transaction.abstract voiddeleteRoutes(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.binding.DataObject & org.opendaylight.yangtools.binding.ChoiceIn<Tables>,S extends org.opendaylight.yangtools.binding.ChildOf<? super C>> 
 RIBSupport<C, S> 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.
- 
Constructor Details- 
RIBSupportContextpublic RIBSupportContext()
 
- 
- 
Method Details- 
createEmptyTableStructurepublic 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 used
- tableId- Instance Identifier of table to be cleared.
 
- 
deleteRoutespublic 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 used
- tableId- Instance Identifier of table to be updated
- nlri- UnreachNlri which contains routes to be removed.
 
- 
writeRoutespublic 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 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
 
- 
getRibSupportpublic abstract <C extends Routes & org.opendaylight.yangtools.binding.DataObject & org.opendaylight.yangtools.binding.ChoiceIn<Tables>,S extends org.opendaylight.yangtools.binding.ChildOf<? super C>> RIBSupport<C,S> getRibSupport()Returns backing RIB support.- Returns:
- RIBSupport
 
 
-