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

In edit-config payload default-operation needs to be set to default-value for PUT/POST calls

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • High
    • Resolution: Done
    • None
    • None
    • netconf
    • None

    Description

      For the PUT/POST calls right now default-operation tag in the edit-config is set to "none"  whose behavior is explained below as per RFC. 

      For devices that enforces this behavior strictly when there is parent structure in the request, ( say for a nested model) , device will throw an error.

      We should  leave this field out ( which will default to merge) and let the device make the right decision.
      none: The target datastore is unaffected by the configuration
      in the <config> parameter, unless and until the incoming
      configuration data uses the "operation" attribute to request
      a different operation. If the configuration in the <config>
      parameter contains data for which there is not a
      corresponding level in the target datastore, an <rpc-error>
      is returned with an <error-tag> value of data-missing.
      Using "none" allows operations like "delete" to avoid
      unintentionally creating the parent hierarchy of the element
      to be deleted.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              bvaradar Balaji Varadaraju
              bvaradar Balaji Varadaraju
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 1 minute
                  1m
                  Remaining:
                  Remaining Estimate - 1 minute
                  1m
                  Logged:
                  Time Spent - Not Specified
                  Not Specified