-
Notifications
You must be signed in to change notification settings - Fork 74
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
Segfault during creation GRE tunnel on IOS XE #632
Comments
The 'config-interface-tunnel-grouping' looks wired |
Segfault does not occur anymore, but still seeing below exception
|
Getting different error with new libyang version: |
Unable to reproduce with the code from the To install the latest code:
This code will be part of next ydk release |
Hello. I'am trying to set tunnel source or destination like IBMeR but the issue persist. The Libyang error shows "Schema node not found.. Path: Cisco-IOS-XE-tunnel:tunnel". The remote device is a "cisco ASR1001-X" (Cisco IOS XE Software, Version 16.09.04). I think I have the same problem that @ygorelik mentioned before. YDK version/OS lsb_release -a File Test and Logs: |
First of all you need to fix your script due to incorrect use of API. Here are the changes in red you need to make:
native = xe_native.Native()interface = native.interface # instance of Native.Interface class has been instantiated in 'native'tunnel = interface.Tunnel()tunnel.name = 521tunnel.description = "test tunnel"tunnel.vrf.forwarding="PostNscrub"#tunnel.ip.address.primary.address= "192.168.201.202"#tunnel.ip.address.primary.mask="255.255.255.254"tunnel.ip.tcp.adjust_mss=1436tunnel.tunnel.source="Lo103"#tunnel.tunnel.destination="8.8.8.8"interface.tunnel.append(tunnel)crud.create(provider, interface)
Second. Make sure your device software version corresponds to the cisco-ios-xe python package version. If not matching, you need to get right package from pypi.org or generate it yourself.
Third. The error appeared while parsing module Cisco-IOS-XE-mpls.yang:
2020-05-25 11:40:18,087 - ydk - ERROR - Data is invalid according to the yang model. Libyang error: Unexpected XPath token [ ([lockdown]) = 1).2020-05-25 11:40:18,087 - ydk - ERROR - Data is invalid according to the yang model. Libyang error: Module "Cisco-IOS-XE-mpls" parsing failed.
Therefore I suggest you to check file '/home/jean/.ydk/10.120.80.117/Cisco-IOS-XE-mpls.yang' and make sure the referenced XPath is correct or not. From what I see it does not look as correct. In comparison with xe/1693 the correct XPath looks like this:
grouping mpls-te-popt-lockdown-grouping {
leaf lockdown {
description
"Not a candidate for reoptimization";
type empty;
}
leaf sticky {
description
"Stay on the same path after change in required resources";
/*
* Validation: lockdown flag must be set first.
*/
when "(count(..[lockdown]) = 1)";
type empty;
}
}
If you find an error, you can edit/fix YANG file '/home/jean/.ydk/10.120.80.117/Cisco-IOS-XE-mpls.yang' in the temporary repository; the YDK will not overwrite it. Make sure to file a bug against erroneous YANG model.
Please let me know if you have any question.
Regards,Yan GorelikYDK Solutions
On Monday, May 25, 2020, 08:51:27 PM GMT+5:30, jeanoballe <notifications@github.com> wrote:
Hello. I'am trying to set tunnel source or destination like IBMeR but the issue persist. The Libyang error shows "Schema node not found.. Path: Cisco-IOS-XE-tunnel:tunnel". The remote device is a "cisco ASR1001-X" (Cisco IOS XE Software, Version 16.09.04). I think I have the same problem that @ygorelik mentioned before.
YDK version/OS
pip3 list | grep ydk
ydk 0.8.4
ydk-models-cisco-ios-xe 16.9.3.post1
ydk-models-cisco-ios-xr 6.6.3
ydk-models-ietf 0.1.5.post2
lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.2 LTS
Release: 18.04
Codename: bionic
File Test and Logs:
tunnel_interface_test.zip.zip
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
From community
Expected Behavior
I trying to create tunnel on IOS XE, but if I try set tunnel source or destination - script interrupted with segmentation fault.
Your Script
Logs
Enable logging and post the logs below
System Information
ydk 062
The text was updated successfully, but these errors were encountered: