[NETCONF-151] netconf-connector-cfg information not correct Created: 19/Feb/16  Updated: 15/Mar/19  Resolved: 22/Mar/16

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

Type: Bug
Reporter: Kevin Wang Assignee: Unassigned
Resolution: Cannot Reproduce 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: 5395

 Description   

Reproduce:
1. Mount a Netconf device on Beryllium with the new netconf-node-topology introduced here: https://wiki.opendaylight.org/view/OpenDaylight_Controller:Config:Examples:Netconf#Spawning_netconf_connectors_via_topology_configuration
2. Do a GET on /restconf/operational/opendaylight-inventory:nodes/node/controller-config/yang-ext:mount/config:modules/
3. Search for keyword odl-sal-netconf-connector-cfg:username and odl-sal-netconf-connector-cfg:password
The odl-sal-netconf-connector-cfg:username is expected to be set as the device username provided in the mounting configuration: <username xmlns="urn:opendaylight:netconf-node-topology">vrouter-device-uname</username>, same as the odl-sal-netconf-connector-cfg:password
However, the odl-sal-netconf-connector-cfg:username and odl-sal-netconf-connector-cfg:password are always set to 'admin' instead



 Comments   
Comment by Tomas Cere [ 22/Feb/16 ]

1 & 2 : If you are configuring through mdsal(topology model) you won't find the configuration in config subsystem. If you want to see how the current configuration that's in netconf topology just switch operational to config in the restconf url you used to configure the connector in the first place.

/controller-config/yang-ext:mount/config:modules/ is a separate entity and you won't find connectors that are configured in topology here. Same applies to the opposite - you won't find configuration that's in cfg subsystem in netconf-topology.

3. you were probably looking at controller-config connector configuration since connectors configured through topology are not present here.

All in all seems like user error to me.

Comment by Tony Tkacik [ 22/Feb/16 ]

Closing as resolved invalid, since as Tomas pointed out config from topology is not moved to sal-netconf-connector-cfg, since this is separate way to configure NETCONF devices and was never intended to be synchronized.

Comment by Colin Dixon [ 10/Mar/16 ]

Given that the old mechanism is present and not deprecated in Beryllium, is is really fair to make this invalid? I'd think not?

Comment by Tomas Cere [ 11/Mar/16 ]

Configuration through topology is meant to bypass cfg subsystem entirely. I'll try to summarize the steps quickly and go over whats wrong.

1. post configuration to mdsal
2. look into cfg subsystem for the configuration which was just posted
3. the newly posted config is not present since it's in mdsal

mdsal and cfg subsystem are 2 separate entities and are not meant to be mirrored/synchronized. When you post configuration to the topology datastore it's going to be present in the topology datastore. You don't want to tangle these 2 systems together.

(In reply to Colin Dixon from comment #3)
> is really fair to make this invalid? I'd think not?

Colin I'm not sure what you mean by this, but the bug report here has an incorrect assumption of mdsal/cfg subsystem and hence is user error.

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