import org.opendaylight.yangtools.yang.binding.DataObject;
import org.opendaylight.yangtools.yang.binding.Identifiable;
import org.opendaylight.yangtools.yang.binding.Identifier;
+import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeIdentifierWithPredicates;
final class RIBSupportContextRegistryImpl implements RIBSupportContextRegistry {
final RIBSupport<?, ?, ?, ?> ribSupport = this.extensionContext.getRIBSupport(key);
return ribSupport == null ? null : this.contexts.getUnchecked(ribSupport);
}
+
+ @Override
+ public RIBSupportContext getRIBSupportContext(final NodeIdentifierWithPredicates key) {
+ final RIBSupport<?, ?, ?, ?> ribSupport = this.extensionContext.getRIBSupport(key);
+ return ribSupport == null ? null : this.contexts.getUnchecked(ribSupport);
+ }
}
import org.opendaylight.yangtools.yang.binding.DataObject;
import org.opendaylight.yangtools.yang.binding.Identifiable;
import org.opendaylight.yangtools.yang.binding.Identifier;
+import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeIdentifierWithPredicates;
public interface RIBSupportContextRegistry {
-
/**
* Acquire a RIB Support for a AFI/SAFI combination.
*
*/
@Nullable
RIBSupportContext getRIBSupportContext(TablesKey key);
+
+ /**
+ * Acquire a RIB Support Context for a AFI/SAFI combination.
+ *
+ * @param key Tables key with AFI/SAFI key
+ * @return RIBSupport instance, or null if the AFI/SAFI is
+ * not implemented.
+ */
+ @Nullable
+ RIBSupportContext getRIBSupportContext(NodeIdentifierWithPredicates key);
}