Interface RIBExtensionProviderContext
- All Superinterfaces:
RIBExtensionConsumerContext
- All Known Implementing Classes:
SimpleRIBExtensionProviderContext
Interface for registering AdjRIBsIn factories. In order for a model-driven RIB implementation to work correctly, it
has to know how to handle individual NLRI fields, whose encoding is specific to a AFI/SAFI pair. This interface
exposes an interface for registration of factories for creating AdjRIBsIn instances, which handle the specifics.
-
Method Summary
Modifier and TypeMethodDescription<T extends RIBSupport<?,
?>>
RIBSupportRegistration<T>registerRIBSupport
(@NonNull AddressFamily afi, @NonNull SubsequentAddressFamily safi, T support) Register a RIBSupport instance for a particular AFI/SAFI combination.Methods inherited from interface org.opendaylight.protocol.bgp.rib.spi.RIBExtensionConsumerContext
getRIBSupport, getRIBSupport, getRIBSupport
-
Method Details
-
registerRIBSupport
<T extends RIBSupport<?,?>> RIBSupportRegistration<T> registerRIBSupport(@NonNull AddressFamily afi, @NonNull SubsequentAddressFamily safi, T support) Register a RIBSupport instance for a particular AFI/SAFI combination.- Parameters:
afi
- Address Family identifiersafi
- Subsequent Address Family identifiersupport
- T RIBSupport instance- Returns:
- Registration handle. Call
Registration.close()
method to remove it. - Throws:
NullPointerException
- if any of the arguments is null
-