Routed RPC json input malformed error

asked 2015-07-13 01:50:57 -0800

labry gravatar image

updated 2015-07-14 16:53:08 -0800

Hello,

I am trying out a routed RPC. I am referencing the below. https://ask.opendaylight.org/question/99/how-does-request-routing-works/ However, I have some issues.

I made my yang with a routed-rpc, and I implemented it using HelloImpl.java

https://github.com/justin-labry/sample_routedrpc/blob/master/hello/api/src/main/yang/hello.yang

https://github.com/justin-labry/sample_routedrpc/blob/master/hello/impl/src/main/java/kr/re/etri/tsdn/impl/HelloImpl.java

I even put two nodes into the operational tree in the DataBroker. (HelloImpl line 70 - 82) I can see the nodes through API doc, however, It gives input malformed protocol error. I want to know how to denote "node-ref" when I make a rest request. Could you give me any advice on this.

However, I get "malformed-message" errors from my /operations/hello:routedrpc-test method. I tried {hello:input":{"node-ref:":"/nodes/node[id='labry']"}} {hello:input":{"node-ref:":"/nodes/node[id=labry]}} {hello:input":{"node-ref:":"/nodes/node/labry}}

and on and on... but none of them worked. Do you know how to give json format to make it work?

image description

edit retag flag offensive close merge delete