Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ExecutorService fails on non-ietf RPC with Libyang error #1067

Closed
jayapr opened this issue Jun 23, 2022 · 0 comments
Closed

ExecutorService fails on non-ietf RPC with Libyang error #1067

jayapr opened this issue Jun 23, 2022 · 0 comments
Assignees

Comments

@jayapr
Copy link

jayapr commented Jun 23, 2022

Issue tracker is ONLY used for reporting bugs. Please use the YDK Community for any support issues.

Expected Behavior

Ping RPC should be generated correctly

Current Behavior

Error is thrown:
Creating new data path 'destination' with value '224.0.0.5' in 'ipv4'
Debug---:ydk:Creating new data path 'destination' with value '224.0.0.5' in 'ipv4'
2022-06-09 23:02:16,889 - ydk - Error--- - Data is invalid according to the yang model. Libyang error: Node already exists. Path: 'destination'
2022-06-09 23:02:16,889 - ydk - Error--- - Data is invalid according to the yang model. Libyang error: Node already exists. Path: 'destination'
Data is invalid according to the yang model. Libyang error: Node already exists. Path: 'destination'
Error---:ydk:Data is invalid according to the yang model. Libyang error: Node already exists. Path: 'destination'
2022-06-09 23:02:16,890 - ydk - Error--- - Could not create data node: destination for path: 'ipv4[destination='224.0.0.5']/destination', value: '224.0.0.5'
2022-06-09 23:02:16,890 - ydk - Error--- - Could not create data node: destination for path: 'ipv4[destination='224.0.0.5']/destination', value: '224.0.0.5'
Could not create data node: destination for path: 'ipv4[destination='224.0.0.5']/destination', value: '224.0.0.5'
Error---:ydk:Could not create data node: destination for path: 'ipv4[destination='224.0.0.5']/destination', value: '224.0.0.5'
topology.connection.connexceptions.ReadError: YModelError Could not create data node: destination : Node already exists.. Path: destination

Steps to Reproduce

Your Script

import os
from ydk.filters import YFilter
from ydk.services import ExecutorService
from ydk.providers import NetconfServiceProvider
from ydk.models.cisco_ios_xr import Cisco_IOS_XR_ping_act as ping_act

exec = ExecutorService()
provider = NetconfServiceProvider(address="10.105.247.151", username="cafyauto", password="cisco123")

destination="224.0.0.5"
ping_rpc = ping_act.Ping()
ipv4 = ping_rpc.Input.Ipv4()
ipv4.destination = destination
ping_rpc.input.ipv4.append(ipv4)
exec.execute_rpc(provider, ping_rpc)

Logs

Enable logging and post the logs below


System Information

@ygorelik ygorelik changed the title Data is invalid according to the yang model. Libyang error: Node already exists. ExecutorService fails on non-ietf RPC with Libyang error Jun 23, 2022
@ygorelik ygorelik self-assigned this Jun 23, 2022
ygorelik pushed a commit to ygorelik/ydk-gen that referenced this issue Jun 23, 2022
ygorelik pushed a commit to ygorelik/ydk-gen that referenced this issue Jun 24, 2022
Signed-off-by: Ubuntu <ubuntu@ubuntu1804.linuxvmimages.local>
ygorelik pushed a commit to ygorelik/ydk-gen that referenced this issue Jun 24, 2022
ygorelik added a commit to ygorelik/ydk-gen that referenced this issue Oct 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants