Hi All, I used the following json, it works fine.
{ "routed-rpc:input":{ "route":"/routed-rpc:rpc-member[routed-rpc:name='rpc-key']" } } Regards, Sivashankar On Sat, Dec 10, 2016 at 2:25 PM, sivashankar ravishankar <hcls...@gmail.com> wrote: > Hi All, > > I am running the sample https://github.com/opendaylight/coretutorials/ > tree/master/clustering/singletonsimple in Opendaylight to test routed > rpc. When i try to input the json > > "{ > "routed-rpc:input":{ > "route":"/routed-rpc:rpc-member[routed-rpc:name='localhost']" > } > }" > > Rest Interface : http://168.127.40.6:8181/restconf/operations/routed- > rpc:routed-rpc (post operation) I am getting the error > > "No local or remote implementation available for rpc > AbsoluteSchemaPath{path=[(urn:opendaylight:params:xml:ns: > yang:clustering:singleton:simple:routed:rpc?revision= > 2016-07-22)routed-rpc]}" > > I installed the sample without any change. Please let me know if my input > json is correct for the given example. > > Thanks > Sivashankar > > > On Tue, Dec 6, 2016 at 6:16 PM, Alexis de Talhouët < > adetalho...@inocybe.com> wrote: > >> Hello, >> >> Please follow this guide [0], it should guide you through the complete >> implementation of an RPC. >> >> Once you've modeled the RPC, you have to implement it, using the >> generated interface, in your case, it would be HelloService.java. And then >> you have to register the implementation in this RpcProviderRegistry. >> >> The error message you're seeing means you're calling an RPC that doesn't >> have any registered implementation. >> >> Hope this helps, >> Alexis >> >> [0]: https://wiki.opendaylight.org/view/OpenDaylight_ >> Controller:MD-SAL:Startup_Project_Archetype#Adding_a_ >> very_simple_HelloWorld_RPC_api >> >> On Dec 6, 2016, at 2:56 AM, 风驰天下 <609790...@qq.com> wrote: >> >> Hi,everyone. >> >> I added a routed-rpc to my hello-app,here is the yang profile: >> >> *module hello {* >> * yang-version 1;* >> * namespace "urn:opendaylight:params:xml:ns:yang:hello";* >> * prefix "hello";* >> >> * import yang-ext { prefix ext; }* >> >> * revision "2015-01-05" {* >> * description "Initial revision of hello model";* >> * }* >> * container helloSimpleNode{* >> * leaf simpleData{* >> * type string;* >> * }* >> * }* >> >> * identity hello-world-context {* >> * description "Test Routed RPC Context";* >> * }* >> >> * list rpc-member {* >> * config false;* >> * leaf name {* >> * type string;* >> * description* >> * "";* >> * }* >> * key "name";* >> * }* >> >> * rpc hello-world {* >> * input {* >> * leaf route {* >> * type instance-identifier;* >> * ext:context-reference hello-world-context;* >> * description* >> * 'Identifies the RPC instance to which the RPC call* >> * should be routed. The instance identifier for the >> routed* >> * RPC in this example must in the following format:* >> * /routed-rpc:rpc-member[routed-rpc:name="rpc-key"]';* >> * }* >> * leaf name{* >> * type string;* >> * }* >> * }* >> * output{* >> * leaf greeting{* >> * type string;* >> * }* >> * leaf invocations{* >> * type int32;* >> * }* >> * leaf host-name{* >> * type string;* >> * }* >> * leaf jvm-uptime{* >> * type int64;* >> * }* >> * leaf-list ip-address{* >> * type string;* >> * }* >> * }* >> * }* >> * notification helloNotification{* >> * leaf note{* >> * type string;* >> * }* >> * }* >> * }* >> >> * Then I added input params into this rpc but with this error:* >> <33992...@42253629.2b6f4658.png> >> >> error-message:"No local or remote implementation available for rpc >> AbsoluteSchemaPath{path=[(urn:opendaylight:params:xml:ns:yan >> g:hello?revision=2015-01-05)hello-world]}" >> >> *Is this a input format error?* >> >> _______________________________________________ >> controller-dev mailing list >> controller-dev@lists.opendaylight.org >> https://lists.opendaylight.org/mailman/listinfo/controller-dev >> >> >> >> _______________________________________________ >> controller-dev mailing list >> controller-dev@lists.opendaylight.org >> https://lists.opendaylight.org/mailman/listinfo/controller-dev >> >> >
_______________________________________________ controller-dev mailing list controller-dev@lists.opendaylight.org https://lists.opendaylight.org/mailman/listinfo/controller-dev