cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
581
Views
10
Helpful
3
Replies

In YDK 0.8.5, getting YCodecError, if a leaf has colon in it.

ruppunda
Cisco Employee
Cisco Employee

Hi, 

In the below request leaf has colon in the string tftp

The request is going to device and response also coming from device. Still we are getting below exception.

i think tftp is considered as Data model and giving error "YCodecError:Data model "sftp" not found.."

 

Could you please help in resolving this error?

 

Tried escaping colon but xr is not considering the escape character. 

 

Info----:ydk:============= Sending RPC to device =============
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"><add xmlns="http://cisco.com/ns/yang/Cisco-IOS-XR-infra-script-mgmt-act">
<script-type>exec</script-type>
<source>tftp://10.105.227.199/ops/exec</source>
<script-name>t_netaddr.py</script-name>
</add>
</rpc>
2022-03-26 17:52:10,767 - ydk - Debug--- - NetconfSSHClient: NC session status: 1
2022-03-26 17:52:10,767 - ydk - Debug--- - NetconfSSHClient: NC session status: 1
Debug---:ydk:NetconfSSHClient: NC session status: 1
2022-03-26 17:52:10,767 - ydk - Debug--- - Trace: Missing message-id in rpc.
2022-03-26 17:52:10,767 - ydk - Debug--- - Trace: Missing message-id in rpc.
Debug---:ydk:Trace: Missing message-id in rpc.
2022-03-26 17:52:10,768 - ydk - Debug--- - Netconf SSH Client: sending RPC
2022-03-26 17:52:10,768 - ydk - Debug--- - Netconf SSH Client: sending RPC
Debug---:ydk:Netconf SSH Client: sending RPC
2022-03-26 17:52:10,770 - ydk - Debug--- - Trace: Writing message (session 4038615970):
<?xml version="1.0"?>
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="2">
<add xmlns="http://cisco.com/ns/yang/Cisco-IOS-XR-infra-script-mgmt-act">
<script-type>exec</script-type>
<source>tftp://10.105.227.199/ops/exec</source>
<script-name>t_netaddr.py</script-name>
</add>
</rpc>

2022-03-26 17:52:10,770 - ydk - Debug--- - Trace: Writing message (session 4038615970):

2022-03-26 17:52:10,771 - ydk - Debug--- - NetconfSSHClient: NC session status: 1
2022-03-26 17:52:10,771 - ydk - Debug--- - NetconfSSHClient: NC session status: 1
Debug---:ydk:NetconfSSHClient: NC session status: 1
2022-03-26 17:52:10,772 - ydk - Debug--- - Netconf SSH Client: receiving reply RPC
2022-03-26 17:52:10,772 - ydk - Debug--- - Netconf SSH Client: receiving reply RPC
Debug---:ydk:Netconf SSH Client: receiving reply RPC
2022-03-26 17:52:11,498 - ydk - Debug--- - Trace: Received message (session 4038615970):
<?xml version="1.0"?>
<rpc-reply message-id="2" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<script-add-response xmlns="http://cisco.com/ns/yang/Cisco-IOS-XR-infra-script-mgmt-act">
<responses>
<script-name>t_netaddr.py</script-name>
<response>t_netaddr.py has been added to the script repository</response>
<status>True</status>
</responses>
</script-add-response>
</rpc-reply>

2022-03-26 17:52:11,498 - ydk - Debug--- - Trace: Received message (session 4038615970):
<?xml version="1.0"?>
<rpc-reply message-id="2" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<script-add-response xmlns="http://cisco.com/ns/yang/Cisco-IOS-XR-infra-script-mgmt-act">
<responses>
<script-name>t_netaddr.py</script-name>
<response>t_netaddr.py has been added to the script repository</response>
<status>True</status>
</responses>
</script-add-response>
</rpc-reply>

Debug---:ydk:Trace: Received message (session 4038615970):

2022-03-26 17:52:11,508 - ydk - Debug--- - Extracting module namespaces from XML payload
2022-03-26 17:52:11,508 - ydk - Debug--- - Extracting module namespaces from XML payload
Debug---:ydk:Extracting module namespaces from XML payload
2022-03-26 17:52:11,508 - ydk - Debug--- - Loading module 'Cisco-IOS-XR-infra-script-mgmt-act', revision ''
2022-03-26 17:52:11,508 - ydk - Debug--- - Loading module 'Cisco-IOS-XR-infra-script-mgmt-act', revision ''
Debug---:ydk:Loading module 'Cisco-IOS-XR-infra-script-mgmt-act', revision ''
2022-03-26 17:52:11,508 - ydk - Debug--- - The module 'Cisco-IOS-XR-infra-script-mgmt-act' schema has already been populated in YDK repository
2022-03-26 17:52:11,508 - ydk - Debug--- - The module 'Cisco-IOS-XR-infra-script-mgmt-act' schema has already been populated in YDK repository
Debug---:ydk:The module 'Cisco-IOS-XR-infra-script-mgmt-act' schema has already been populated in YDK repository
2022-03-26 17:52:11,509 - ydk - Error--- - Parsing failed with message Data model "tftp" not found.
2022-03-26 17:52:11,509 - ydk - Error--- - Parsing failed with message Data model "tftp" not found.
Error---:ydk:Parsing failed with message Data model "tftp" not found.
*** ydk.errors.YCoreError: YCodecError:Data model "tftp" not found.. Path:

1 Accepted Solution

Accepted Solutions

I am targeting end of the next week. Look for the announcement.

Yan Gorelik
YDK Solutions

View solution in original post

3 Replies 3

yangorelik
Spotlight
Spotlight

This is known GitHub issue, which is already resolved in coming soon release 0.8.6.2.

Yan Gorelik

Yan Gorelik
YDK Solutions

Hi Yan Gorelik

 

Thanks for the update, would like to know when is 0.8.6.2 planned to release.

 

Regards, 

Ramya

I am targeting end of the next week. Look for the announcement.

Yan Gorelik
YDK Solutions