[NETCONF-529] Add support for <copy-config> to mdsal-netconf-connector Created: 19/Mar/18  Updated: 29/Mar/18  Resolved: 29/Mar/18

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

Type: Story Priority: Medium
Reporter: Marek Gradzki Assignee: Marek Gradzki
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Motivation

While <edit-config> is enough to configure any Netconf device,

<copy-config> is more user friendly in scenarios, when entire configuration has to be written in single request.

<edit-config> unlike a <copy-config> operation, replaces only the configuration actually present in the <config> parameter.

So user might be required to explicitly delete some nodes that were present in the datastore while flushing netconf device.

 

Proposed solution

The purpose of the task is to add <copy-config> support to mdsal-netconf-connector which provides northbound server which is a generic interface to MD-SAL in OpenDaylight.

It does not apply to netconf-connector nor config-netconf-connector, so MD-SAL APIs won't be affected.

 

In order to be consistent with <edit-config>, add support for <candidate/> only.

Support for <running/> might be added in the future as a part of separate task.

 

<copy-config> handler has to remove old configuration first.

The rest can be seen as simplified version of <edit-config> with "create" operation:

  • no need for operation tracking
  • no need for special handling for Augmentation/ListSchemaNodes (-NETCONF-385, --NETCONF-427-).

 

Reference

https://tools.ietf.org/html/rfc6241#section-7.3



 Comments   
Comment by Marek Gradzki [ 19/Mar/18 ]

master:

https://git.opendaylight.org/gerrit/#/c/69605/

Comment by Marek Gradzki [ 19/Mar/18 ]

Oxygen testing:

https://git.opendaylight.org/gerrit/#/c/69606/

Nitrogen testing:

https://git.opendaylight.org/gerrit/#/c/69607/

Generated at Wed Feb 07 20:15:15 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.