-
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
Device features advertised in capability for imported model should be considered #777
Labels
Comments
ghost
added
the
bug
label
May 1, 2018
ghost
assigned ygorelik
May 16, 2018
from ydk.models.cisco_ios_xe import Cisco_IOS_XE_native
native=Cisco_IOS_XE_native.Native()
tunnel = native.interface.Tunnel()
tunnel.name = 1
tunnel.tunnel.destination = '172.58.2.1'
tunnel.ip.address.primary.address = '192.168.1.1'
tunnel.ip.address.primary.mask = '255.255.255.252'
tunnel.tunnel.source = 'GigabitEthernet0/0/0'
tunnel.tunnel.protection.ipsec.profile = 'ipsec-profile'
tunnel.tunnel.protection.ipsec.ikev2_profile = 'ikev2-profile'
native.interface.tunnel.append(tunnel) |
I could not reproduce the issue when using lab device XE16.7.1 and path API:
See attached log for details: |
Looks like you are using |
ygorelik
pushed a commit
to ygorelik/ydk-gen
that referenced
this issue
May 23, 2018
ygorelik
pushed a commit
to ygorelik/ydk-gen
that referenced
this issue
May 23, 2018
Resolved the bug. Added core test case, which uses MockSession class. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If a device advertises feature compliance in a model 'x' that is imported by model 'y', these features must be considered by YDK when validating the yang models.
Current behavior
Currently, because the features from hello message capabilities are not correctly parsed, something like the below error occurs
or
The text was updated successfully, but these errors were encountered: