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


About netconf device, why did first get-config operation befor do edit-config

asked 2015-03-22 18:41:43 -0700

freshunter gravatar image

If fire a POST or PUT request by apidoc, I'd like to direct send a netconf message to the device without getting device's configuration and compare them first.

Is there any way I could achieve this without modify the source code?

Thanks for advance.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2015-03-25 08:59:18 -0700

Maros gravatar image

Not possible right now (without code change). RESTCONF reads the data and checks if the data itself exists and if its parent structure exists (and creates the structure if not).

I think this should be optional or even left out in case of mounted device, since it brings unnecessary overhead in some situations. This applies only to RESTCONF, when writing to the device from code(application) either in binding independent or in binding aware format its not happening (with current master, future Lithium, code).

edit flag offensive delete publish link more


Maros, thank you for your reply, it is helpful. Now I have modified the code to do some test and another question if it is possible to display the mounted device's yang in YangUI? I could see device's restconf api which is generated by device's yang files by ODL at apidoc page, but not at the YangUI page.

freshunter ( 2015-03-25 20:52:32 -0700 )edit
Login/Signup to Answer

Question Tools



Asked: 2015-03-22 18:41:43 -0700

Seen: 625 times

Last updated: Mar 25 '15