Ask Your Question
0

How/Where to change the RPC request

asked 2014-05-22 11:58:18 -0700

csadi gravatar image

updated 2014-05-22 11:59:12 -0700

After debugging on the device side, below is what works correctly on the device side

<rpc message-id="m-25" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"> <get-schema xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring"> <identifier>ietf-netconf-notifications</identifier> <version>2012-02-06</version> <format>yang</format> </get-schema> </rpc>

ODL sends the RPC with a sequence below and gets back error. How to change the sequence such that <identifier> is sent before <version></version></identifier>

<rpc message-id="m-25" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"> <get-schema xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring"> <version>2012-02-06</version> <identifier>ietf-netconf-notifications</identifier> <format>yang</format> </get-schema> </rpc>

2014-05-22 14:48:40.131 EDT [nettyThreadgroupModule$NioEventLoopGroupCloseable-7-1] DEBUG o.o.c.n.u.h.NetconfMessageAggregato r - Message is complete. 2014-05-22 14:48:40.131 EDT [nettyThreadgroupModule$NioEventLoopGroupCloseable-7-1] DEBUG o.o.c.n.u.m.NetconfMessageFactory - Parsing message <rpc-reply message-id="m-25" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"><rpc-error> <error-type>protocol</error-type> <error-tag>missing-element</error-tag> <error-severity>error</error-severity> <error-path xmlns:ncm="urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring"> /rpc/ncm:get-schema/ncm:identifier </error-path><error-info><bad-element>identifier</bad-element> </error-info> </rpc-error> </rpc-reply>

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
1

answered 2014-05-27 10:09:35 -0700

csadi gravatar image

Added bug 1080

edit flag offensive delete publish link more
0

answered 2014-05-23 00:05:42 -0700

Tony Tkacik gravatar image

Code for NETCONF Connector is present in controller git in opendaylight/md-sal/sal-netconf-connector, please feel free to submit patch.

edit flag offensive delete publish link more

Comments

Hello Tony I dont have that file on my setup and have no access ... can you please help me fix this and check in? Thanks and Regards Adi

csadi ( 2014-05-27 07:19:52 -0700 )edit

csadi - please open a bug on bugs.opendaylight.org and note it here - sounds like the accepted answer here should be "this is a bug and will be fixed by bug xxx". Thank you.

Devin Avery ( 2014-05-27 09:39:11 -0700 )edit

Bugfix was merged to the master.

Tony Tkacik ( 2014-06-06 05:06:52 -0700 )edit

Can you please give me a build id and location from where i can download the binary? Thanks Adi

csadi ( 2014-06-09 07:04:11 -0700 )edit
Login/Signup to Answer

Question Tools

Follow
1 follower

Stats

Asked: 2014-05-22 11:58:18 -0700

Seen: 918 times

Last updated: May 23 '14