[CONTROLLER-1085] Write sequence in netconf connector does not fully conform to RFC 6241 Created: 07/Jan/15  Updated: 08/Jan/15  Resolved: 08/Jan/15

Status: Resolved
Project: controller
Component/s: netconf
Affects Version/s: Helium
Fix Version/s: None

Type: Bug
Reporter: Maros Marsalek Assignee: Maros Marsalek
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


Issue Links:
Duplicate
duplicates CONTROLLER-1048 Netconf connector assumes candidate=r... Resolved
External issue ID: 2560

 Description   

Current write sequence follows these steps(candidate supported):

  • edit(candidate)
  • commit

But it is required to use locking and also detect concurrent edits for shared datastores (using discard changes).

Expected canonical write for devices supporting only writable running capability:

  • lock running or fail
  • edit running (unlock on fail)
  • unlock running

supporting only candidate:

  • lock candidate
    • if lock fails, try to discard changes
      • if discard fails, fail
      • if discard succeeds, lock candidate
        • if lock fails, fail
  • edit candidate (discard-changes + unlock on fail)
  • commit
  • unlock candidate

supporting both writable running and candidate:

  • lock running or fail
  • SAME AS FOR CANDIDATE ONLY
  • unlock running


 Comments   
Comment by Maros Marsalek [ 07/Jan/15 ]

https://git.opendaylight.org/gerrit/#/c/13538/4

Generated at Wed Feb 07 19:54:39 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.