You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issue tracker is ONLY used for reporting bugs. Please use the YDK Community for any support issues.
Expected Behavior
We expect YDK exception for invalid leaf names.
Current Behavior
Python programs runs successfully without exceptions - which is incorrect. Invalid leaf is silently ignored during XML encoding.
Steps to Reproduce
Easy to reproduce by mistyping a leaf name.
Your Script
fromargparseimportArgumentParserimporturllib.parse# from urlparse import urlparsefromydk.servicesimportCRUDServicefromydk.providersimportNetconfServiceProviderfromydk.models.cisco_ios_xrimportCisco_IOS_XR_mpls_lsd_cfg \
asxr_mpls_lsd_cfgfromydk.typesimportEmptyimportloggingdefconfig_mpls_lsd(mpls_lsd):
"""Add config data to mpls_lsd object."""mpls_lsd.mpls_ip_ttl_propagate_disable=xr_mpls_lsd_cfg.MplsIpTtlPropagateDisable.all# mpls_lsd.app_reg_delay_disable = Empty()# Line below uses incorrect leaf name (agg_reg_delay_disable) instead of # the correct leaf name above (app_reg_delay_disable). No exception is generated when the# object is encoded. mpls_lsd.agg_reg_delay_disable=Empty()
mpls_lsd.ltrace_multiplier=2mpls_lsd.mpls_entropy_label=Empty()
Issue tracker is ONLY used for reporting bugs. Please use the YDK Community for any support issues.
Expected Behavior
We expect YDK exception for invalid leaf names.
Current Behavior
Python programs runs successfully without exceptions - which is incorrect. Invalid leaf is silently ignored during XML encoding.
Steps to Reproduce
Easy to reproduce by mistyping a leaf name.
Your Script
Logs
Enable logging and post the logs below
System Information
The text was updated successfully, but these errors were encountered: