restconf/mdsal wildcard queries


Sam Hague
 

Tony, Robert,

Anil mentioned there is a possibility to add wildcard queries to mdsal? Is that a feature that can be added for Be?

The idea is to be able to search for something using a field in the model that is not a key. For instance, the ovsdb.yang imports the network-topology and adds a Node to the datastore. The model augments the node to include ip-addresses. We would like the ability to issue a restconf query to return the node with that ip-address.

Today to do this we would implement an RPC to terminate in our backend code. Then retrieve all the Nodes in the datastore, loop over them and look for the specific matching data. We figure this is a common block of code that might be able to be implemented in the mdsal itself.

Thanks, Sam

Join z.archive.ovsdb-dev@lists.opendaylight.org to automatically receive all group messages.