[NETCONF-477] spawning netconf connections - missing input validation Created: 10/Oct/17  Updated: 09/Jul/21  Resolved: 09/Jul/21

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

Type: Bug
Reporter: Juraj Veverka Assignee: Unassigned
Resolution: Won't Do 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: 9262

 Description   

Problem:
Following NetConf user guide https://wiki.opendaylight.org/view/OpenDaylight_Controller:Config:Examples:Netconf in new device configuration is added by simply writing device configuration data into network topology model. This approach is very naive, because no validation is done and client gets always 201 (created) response regardless of the fact his configuration was valid or not.
The problem is that direct write into topology model is used instead of RPC call.
In case NETCONF-476 will be fixed, base64 binary data must be part of device configuration which will be difficult to verify on model level.

Solution:
instead of direct write into netconf topology model, new set of RCPs will be created for create/delete netconf device configurations.
existing topology model
netconf/sal-netconf-connector/src/main/yang/netconf-node-topology.yang
must be adapted.
new RPCs: create-device, delete-device will be introduced in user manuals. This solution backwards compatible, because direct writes into netconf topology model are still possible.
create-device, delete-device will verify configuration data before using them and will report error / success to the client application accordingly.



 Comments   
Comment by Robert Varga [ 28/Aug/18 ]

juraj.veverka@pantheon.tech I have trouble undestanding the problem, especially what consitutes "valid" and "invalid" data. The datastore will certainly validate inserted data based on YANG at least... what sort of validation are we talking about here?

Comment by Robert Varga [ 09/Jul/21 ]

No feedback on what the request is, closing.

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