[CONTROLLER-931] Adding deleted netconf node back in fails Created: 14/Oct/14  Updated: 28/Oct/14  Resolved: 28/Oct/14

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

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

Operating System: All
Platform: All


External issue ID: 2184

 Description   

If I add a node using a POST to:

/restconf/config/opendaylight-inventory:nodes/node/controller-config/yang-ext:mount/config:modules

and then delete it using DELETE of

/restconf/config/opendaylight-inventory:nodes/node/foo

then I am unable to add the node back in again.

I've also found that if I do a ./stop and a ./start clean then any nodes I've added and then deleted appear again once I load the netconf and restconf features.

I'm guessing this is one bug rather than two.



 Comments   
Comment by Maros Marsalek [ 20/Oct/14 ]

Hey Giles,

So you spawn a netconf connector and that netconf connector creates data under opendaylight-inventory:nodes/node/. So deleting the data under opendaylight-inventory:nodes/node/ does not change anything (should not be possible) since that data is inserted automatically from netconf connector).

If you want to unconfigure/delete netconf connector to a specific node (and thus deleting the data under opendaylight-inventory:nodes/node/) you need to execute following request (replace the last part with the id of your mount point):

DELETE http://localhost:8181/restconf/config/opendaylight-inventory:nodes/node/controller-config/yang-ext:mount/config:modules/config:module/odl-sal-netconf-connector-cfg:sal-netconf-connector/controller-config

However there was a bug regarding delete and heres the fix:
https://git.opendaylight.org/gerrit/#/c/12069/

Comment by Maros Marsalek [ 23/Oct/14 ]

Additional fix for subtree filtering with identity-refs:
https://git.opendaylight.org/gerrit/#/c/12165/

Comment by Maros Marsalek [ 27/Oct/14 ]

Merged into master, but still needs to go to stable branch. Tony offered to do this.

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