Hi Ranga, You can user the MD-SAL databroker service directly to write to the data store. You need to inject this service in your code and than use the interfaces exposed by DataBroker.java, to write to the data store. Following example don't give the exact detail but may be helpful to give you some pointers.
https://github.com/opendaylight/openflowplugin/blob/master/applications/bulk-o-matic/src/main/java/org/opendaylight/openflowplugin/applications/bulk/o/matic/FlowWriterSequential.java#L139 On Sat, May 4, 2019 at 7:08 AM M. Ranganathan <[email protected]> wrote: > > Hello, > > Starting from the nodeId of an openflow switch (e.g. openflow:1) I can > list all the flows at that switch using the following: > > curl -v -u admin:admin > http://127.0.0.1:8181/restconf/config/opendaylight-inventory:nodes/node/openflow:1 > > I want to do the same thing from my openflow application. I would like to > avoid using HttpClient to do this. Is there a way to do this using an rpc > service so I can get a reference to this service when starting my provider? > i.e. I want to declare this in my blueprint.xml and call it. I can't figure > out which service gives me this functionality. Any help would be > appreciated. > > Thank you in advance. > > Regards, Ranga > > -- > M. Ranganathan > > > > -- > M. Ranganathan > > _______________________________________________ > openflowplugin-dev mailing list > [email protected] > https://lists.opendaylight.org/mailman/listinfo/openflowplugin-dev > -- Thanks Anil
_______________________________________________ openflowplugin-dev mailing list [email protected] https://lists.opendaylight.org/mailman/listinfo/openflowplugin-dev
