I did as you suggested but no flow appears and I see the following error in
my log:
java.util.concurrent.ExecutionException:
org.opendaylight.controller.md.sal.dom.api.DOMRpcImplementationNotAvailableException:
No implementation of RPC
Yes, you wll have to use SalFlowService and it's not deprecated.
On Thu, Jul 12, 2018 at 1:52 PM M. Ranganathan wrote:
> Thanks, if I had to do this from within a Java app, I assume I'd have to
> use the SalFlowService. Is that not deprecated ? If so, what is the MdSal
> alternative?
>
>
You can send openflow RPC like the example below:
POST http://192.168.0.101:8181/restconf/operations/sal-flow:add-flow
{
"input": {
"opendaylight-flow-service:node":"/opendaylight-inventory:nodes/opendaylight-inventory:node[opendaylight-inventory:id='openflow:1']",
"priority": 2,