Uploaded image for project: 'netconf'
  1. netconf
  2. NETCONF-312

ODL always uses edit operation "replace"

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • 8.0.0, 7.0.5
    • None
    • restconf-nb
    • Operating System: All
      Platform: All

    • 7069
    • Normal

      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:

      -------------------------------------------------------+

      RESTCONF NETCONF

      -------------------------------------------------------+

      OPTIONS none
      HEAD none
      GET <get-config>, <get>
      POST <edit-config> (nc:operation="create")
      POST invoke an RPC operation
      PUT <edit-config> (nc:operation="create/replace")
      PATCH <edit-config> (nc:operation="merge")
      DELETE <edit-config> (nc:operation="delete")

      -------------------------------------------------------+
      REFERENCE https://tools.ietf.org/html/draft-ietf-netconf-restconf

      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.

            rkashapov Ruslan Kashapov
            sven.wisotzky@nokia.com Sven Wisotzky
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: