[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 |
||
| 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): However there was a bug regarding delete and heres the fix: |
| Comment by Maros Marsalek [ 23/Oct/14 ] |
|
Additional fix for subtree filtering with identity-refs: |
| Comment by Maros Marsalek [ 27/Oct/14 ] |
|
Merged into master, but still needs to go to stable branch. Tony offered to do this. |