[NETCONF-52] Using restconf rpc to edit the configuration of netconf enabled device, controller will remove the attribute of content Created: 02/Jul/15 Updated: 13/Aug/19 |
|
| Status: | Confirmed |
| Project: | netconf |
| Component/s: | restconf-nb |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | dacheng wu | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Operating System: Linux |
||
| External issue ID: | 3930 |
| Description |
|
ODL Version: Release/Helium-SR3 I mount a netconf enabled device (name:netconf-device-1), and use edit-config rpc by postman. <edit-config> But the controller removes all attributes of the xml and sends it to the entconf server. <rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="m-76"> And ODL responses There is other operation to use for editing controller configuration: http://controller_ip:8181/restconf/config/opendaylight-inventory:nodes/node/netconf-device-1/yang-ext:mount/of-config:capable-switch/logical-switches/switch/ofc-bridge/controllers Yes, it can edit the controller ip for the entconf enabled switch. If we want to operate the configuration step by step, not continuous actions. Like as For the first step, it should operate netconf rpc directly, the restconf api should like as below If we want to modify running configuration directly not edit candidate first, it will also encounter the same issue. Best Regards |
| Comments |
| Comment by Maros Marsalek [ 27/Jul/15 ] |
|
Thanks for the report. When editing configuration on a mounted Netconf device over Restconf, ODL hides the edit+commit rpcs to make Restconf behave as expected (you alse cannot choose which datastore to edit). And I dont think we should change that. You should be able to achieve what you need by invoking edit-config manually. But as you say, the attributes are gone. This is the behavior on Helium and we should test this also with Lithium. I think the best approach would be implementing a small handler in ODL (1 or more RPCs) that would change the configuration of the device step by step and commit when requested. |