Ask Your Question
0

How to enter instance-identifier in YangUI?

asked 2016-12-15 07:02:24 -0700

jgray gravatar image

Hi,
I added routed RPC capability to the HelloWorld tutorial app following the inventory model.
It works well in the integration test.
I want to test it with YangUI and it requests a node instance-identifier for the RPC context.
I tried using /inv:nodes/inv:node[id="foo"]
(from https://wiki.opendaylight.org/view/Op... )
but it doesn't work ("failed to lookup prefix").

Does anybody know the correct format for an instance-identifier with YangUI?

(or where the restconf input parsing code is...)

Thanks.

edit retag flag offensive close merge delete

2 answers

Sort by » oldest newest most voted
0

answered 2016-12-16 00:59:16 -0700

simpler gravatar image

"/hello:rpc-member[hello:name='rpc-key']",this is my defined rpc input.So I think the format is "module-name:list-name[module-name:key-name='your-input-keyvalue']"

edit flag offensive delete publish link more

Comments

Thanks a lot!! I will only be able to test it on Sunday. I will report.

jgray ( 2016-12-16 06:37:18 -0700 )edit
0

answered 2016-12-18 03:18:47 -0700

jgray gravatar image

updated 2016-12-18 03:19:50 -0700

Simpler, you nailed it!!
What worked for me, like you said, was:
/hello:nodes/hello:node[hello:id='my-id']

THANKS A LOT!!

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

Question Tools

Follow
1 follower

Stats

Asked: 2016-12-15 07:02:24 -0700

Seen: 153 times

Last updated: Dec 18 '16