[NETCONF-312] ODL always uses edit operation "replace" Created: 31/Oct/16 Updated: 14/Dec/23 |
|
| Status: | Confirmed |
| Project: | netconf |
| Component/s: | restconf-nb |
| Affects Version/s: | None |
| Fix Version/s: | 7.0.0 |
| Type: | Bug | ||
| Reporter: | Sven Wisotzky | Assignee: | Ruslan Kashapov |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | pick-next, pt | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Operating System: All |
||
| Issue Links: |
|
||||||||
| External issue ID: | 7069 | ||||||||
| Priority: | Normal | ||||||||
| Description |
|
In my testing, ODL is always generating NETCONF <edit-config> requests with operation "replace". According to IETF Draft IETF NETCONF RESTCONF the following is expected: ---------
---------
--------- As a matter of consequence ODL is currently running into issues, for vendors who have not yet implemented the "replace" operation. Somehow I believe, this is caused by an incomplete implementation. OpenDaylight already has the "checkItemDoesNotExists()" method implemented. So it should use this information to decide about using the "create" or "replace" method based on using POST or PUT. |
| Comments |
| Comment by Wenbo Hu [ 23/Mar/17 ] |
|
It also affects create operation in YANG Patch. I'm trying to fix this bug by wrapping payload of a "create" request with a implementation of NormalizedNode interface (PostNormalizedNode) in org.opendaylight.netconf.sal.restconf.impl.BrokerFacade. Current problem is that org.opendaylight.netconf.sal.restconf.impl.BrokerFacade is in sal-rest-connector module, while org.opendaylight.netconf.sal.connect.netconf.sal.tx.AbstractWriteTx is in sal-netconf-connector module. |
| Comment by Wenbo Hu [ 24/Mar/17 ] |
|
I made a fix for this: |
| Comment by Tomas Cere [ 10/Oct/17 ] |
|
The above patch had no movement for 4months, so back in queue |
| Comment by Robert Varga [ 14/Dec/23 ] |
|
So NETCONF-773 provides the isolation for this, so the way these work is under control of NetconfRestconfStrategy. I think we have a duplicate of this somewhere. |