[CONTROLLER-1012] Deleting a node from the inventory does not remove it from the configuration Created: 11/Nov/14  Updated: 19/Oct/17  Resolved: 24/Nov/15

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

Type: Improvement
Reporter: Wojciech Dec Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All



 Description   

Using the stock Helium build, when a Netconf node is added using Restconf into the inventory and successively deleted, the ODL's "current/controller.currentconfig.xml" does not get updated.
As a result, on restarting, the deleted node shows up again in the inventory.

Eg After the following:
2014-11-11 13:14:46,628 | INFO | qtp854362504-69 | BrokerFacade | 234 - org.opendaylight.controller.sal-rest-connector - 1.1.0.Helium | Delete CONFIGURATION via Restconf: /(urn:opendaylight:inventory?revision=2013-08-19)nodes/node/node[

{(urn:opendaylight:inventory?revision=2013-08-19)id=vppX}

]

The config file still shows:

<module>
<type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:md:sal:connector:netconf">prefix:sal-netconf-connector</type>
<name>vppX</name>
<port xmlns="urn:opendaylight:params:xml:ns:yang:controller:md:sal:connector:netconf">2022</port>
<connection-timeout-millis xmlns="urn:opendaylight:params:xml:ns:yang:controller:md:sal:connector:netconf">20000</connection-timeout-millis>
<between-attempts-timeout-millis xmlns="urn:opendaylight:params:xml:ns:yang:controller:md:sal:connector:netconf">2000</between-attempts-timeout-millis>

...



 Comments   
Comment by Tony Tkacik [ 12/May/15 ]

Could you provide more details how you add and remove nodes?

Comment by Maros Marsalek [ 20/May/15 ]

Moving to Berylium. Destroying netconf connector after netconf node is deleted in the datastore is not supported and was not planned for Lithium

Comment by Tomas Cere [ 24/Nov/15 ]

Destroying nodes configured via config subsystem by deleting them from the datastore wont be supported.
However in Berylium configuration via topology datastore was added.
https://wiki.opendaylight.org/view/OpenDaylight_Controller:Config:Examples:Netconf#Spawning_netconf_connectors_via_topology_configuration
This way you can configure and destroy netconf connectors using only the datastore.

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