Ask is moving to Stack Overflow and Serverfault.com! Please use the "opendaylight" tag on either of these sites. This site is now in Read-Only mode

0

New Rpc implementation

asked 2015-04-09 23:34:45 -0800

faizan gravatar image

updated 2015-04-10 00:34:40 -0800

Hi, I am trying to register a new RPC call via restconf for my application.

For that i have made changes in yang files and dependencies in pom.

My classes are generated fine and RPC is listed in OpenDaylight RestConf API Documentation too.

But when I tried to use that RPC gives me an error :

{ "error-type": "rpc", "error-tag": "operation-not-supported", "error-message": "No implementation for this operation is available." }

In createInstance() method i have register rpc via

BindingAwareBroker.RpcRegistration<pgnapplicationservice> rpcRegistration</pgnapplicationservice>

Any pointers for solution??

Regards,

Faizan

edit retag flag offensive close merge delete

Comments

Is your feature installed? feature:list -i | grep yfeature are there errors in karaf log? are (all) the bundles of your feature "active" bundle:list -s | grep yfeature if not try to start them with start bundleid. log messages from the createInstance() in karaf log? perhaps only the model is loaded?

mawil ( 2015-04-10 02:18:25 -0800 )edit

Hi Mawil, I am running it with run.sh and i have only one application.jar which is active.

faizan ( 2015-04-10 04:04:45 -0800 )edit

Ok, if you start the controller with ./run.sh i think you are using the hydrogen version. I got no idea how to debug this... sry!

mawil ( 2015-04-10 09:30:01 -0800 )edit

No Issue :) I guess i found out the possible reason.. will look into it. And no i m using stable helium release but not using karaf to run it. debug is same for it i.e. -debug. Thanks for ur time

faizan ( 2015-04-11 06:30:54 -0800 )edit

@faizan what was the issue? I had this issue in Stable branch. Then i moved to master branch for my work. If you found a solution, let us know.

gyanesh ( 2015-04-14 07:45:36 -0800 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2016-02-14 04:39:56 -0800

GG gravatar image

You may start the ODL controller and then take advantage of the MD-SAL Restconf API explorer to verify your RPC is registered as expected. See details at:

https://wiki.opendaylight.org/view/Op...Controller:MD-SAL:RestconfAPI_Explorer

Also double ckeck your code by following the tutorial:

https://wiki.opendaylight.org/view/Op...Controller:MD-SAL:ToasterStep-By-Step#RegisterOpendaylightToasterwiththeRPC_service

about the appropriate steps to register RPCs.

edit flag offensive delete publish link more
Login/Signup to Answer

Question Tools

Follow
1 follower

Stats

Asked: 2015-04-09 23:34:45 -0800

Seen: 304 times

Last updated: Feb 14 '16