[NETCONF-721] Running an edit-config through ODL Netconf? Created: 27/Aug/20 Updated: 02/May/23 |
|
| Status: | Open |
| Project: | netconf |
| Component/s: | netconf |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Medium |
| Reporter: | Eric Sender | Assignee: | Robert Varga |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
|
||
| Attachments: |
|
||||||||
| Issue Links: |
|
||||||||
| Description |
|
I'm not sure if my issue here is 100% related to OpenDaylight because there are a few aspects to our stack, however our main goal is How to run an Edit-Config netconf command through SSH into OpenDaylight?
To try to accomplish this, I am using netopeer2-cli to create an ssh connection to opendaylight netconf connection.
First, I am not sure if this is a separate issue or part of the problem, but when I establish a connection to opendaylight via port 2830, I see a series of errors related to libyang:
> connect --ssh --login admin --port 2830
Here is the result of a `get-config` command: > get-config --source=running
So, the `ly` errors may be part of the problem or a separate issue. That said, when I try to connect to netconf via pure SSH, I get disconnected after 20 seconds:
$ ssh -p 2830 admin@localhost -s netconf
Connection aside, when I do try to run
> edit-config --target=running --config=/vagrant/odl-rmbn-reset.xml
So, the error that concerns me is Failed to find "running" as a sibling to "ietf-netconf:config-target". This tells me that running an edit-config doesn't work because odl-netconf-mdsal can't find the running configuration.
So to simplify my question: How does one run an edit-config against the running or candidate config in OpenDaylight?
|
| Comments |
| Comment by Robert Varga [ 02/May/23 ] |
|
Hmm... opendaylight-topology-view is something we ditched quite a while ago. It seems you are hitting strict validation of YANG models on the side of netopeer2-cli – ODL can support YANG models which have 'list' statements without 'key' statement and 'config true' – which is beyond the YANG spec. |