Closed xulleon closed 5 years ago
The group GROUP-IFSUB defined in Cisco-IOS-XR-um-vrf-cfg.yang is augmented in Cisco-IOS-XR-um-interface-cfg.yang in two containers: interface and interface-preconfigure:
augment "/a1:interfaces/a1:interface" {
uses GROUP-IFSUB;
}
augment "/a1:interfaces/a1:interface-preconfigure" {
uses GROUP-IFSUB;
}
Therefore corresponding generated code is added in the Cisco_IOS_XR_um_interface_cfg.py. Here is snippet from that code:
class Ipv4(object):
"""
IPv4 address family
.. attribute:: multicast
Multicast topology
**type**\: :py:class:`Multicast <ydk.models.cisco_iosxr_711.Cisco_IOS_XR_um_interface_cfg.Interfaces.Interface.AddressFamily.Ipv4.Multicast>`
**presence node**\: True
"""
_prefix = 'um-vrf-cfg'
_revision = '2019-06-10'
def __init__(self):
self.parent = None
self.ylist_key_names = []
self.multicast = None
class Multicast(object):
"""
Multicast topology
.. attribute:: default_topology
Multicast default topology
**type**\: :py:class:`DefaultTopology <ydk.models.cisco_iosxr_711.Cisco_IOS_XR_um_interface_cfg.Interfaces.Interface.AddressFamily.Ipv4.Multicast.DefaultTopology>`
**presence node**\: True
.. attribute:: topologies
Specify a non\-default topology
**type**\: :py:class:`Topologies <ydk.models.cisco_iosxr_711.Cisco_IOS_XR_um_interface_cfg.Interfaces.Interface.AddressFamily.Ipv4.Multicast.Topologies>`
.. attribute:: _is_presence
Is present if this instance represents presence container else not
**type**\: bool
This class is a :ref:`presence class<presence-class>`
"""
_prefix = 'um-vrf-cfg'
_revision = '2019-06-10'
def __init__(self):
self.parent = None
self.ylist_key_names = []
self._is_presence = True
self.default_topology = None
self.topologies = Interfaces.Interface.AddressFamily.Ipv4.Multicast.Topologies()
self.topologies.parent = self
class DefaultTopology(object):
"""
Multicast default topology
.. attribute:: _is_presence
Is present if this instance represents presence container else not
**type**\: bool
This class is a :ref:`presence class<presence-class>`
"""
_prefix = 'um-vrf-cfg'
_revision = '2019-06-10'
Everything is in place where it is supposed to be.
Issue tracker is ONLY used for reporting bugs. Please use the YDK Community for any support issues.
Expected Behavior
matching bundle code should be generated accordingly.
Current Behavior
when generate YDK Bundle In a Yang file, ydk failed to generate content for "grouping GROUP-IFSUB" in vrf yang file.
Steps to Reproduce
Your Script
Logs
Enable logging and post the logs below
System Information