<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Error : ancestor for entity cannot be nullptr in Tools</title>
    <link>https://community.cisco.com/t5/tools/error-ancestor-for-entity-cannot-be-nullptr/m-p/3524611#M2309</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found one interesting thing about constructor method for class Family()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;In old bundle, which I prepared couple weeks ago all child classes&amp;nbsp; are listed within the same ordered dict &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt; def __init__(self):&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; super(Configuration.DynamicProfiles.Interfaces.Interface.Unit.Family, self).__init__()&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&amp;nbsp; self.yang_name = "family"&lt;/P&gt;&lt;P&gt;&amp;nbsp; self.yang_parent_name = "unit"&lt;/P&gt;&lt;P&gt;&amp;nbsp; self.is_top_level_class = False&lt;/P&gt;&lt;P&gt;&amp;nbsp; self.has_list_ancestor = True&lt;/P&gt;&lt;P&gt;&amp;nbsp; self.ylist_key_names = []&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;&amp;nbsp; self._child_classes = OrderedDict([("inet", ("inet", Configuration.DynamicProfiles.Interfaces.Interface.Unit.Family.Inet)), ("iso", ("iso", Configuration.DynamicProfiles.Interfaces.Interface.Unit.Family.Iso)), ("inet6", ("inet6", Configuration.DynamicProfiles.Interfaces.Interface.Unit.Family.Inet6)), ("mpls", ("mpls", Configuration.DynamicProfiles.Interfaces.Interface.Unit.Family.Mpls)), ("mlppp", ("mlppp", Configuration.DynamicProfiles.Interfaces.Interface.Unit.Family.Mlppp)), ("mlfr-end-to-end", ("mlfr_end_to_end", Configuration.DynamicProfiles.Interfaces.Interface.Unit.Family.MlfrEndToEnd)), ("mlfr-uni-nni", ("mlfr_uni_nni", Configuration.DynamicProfiles.Interfaces.Interface.Unit.Family.MlfrUniNni)), ("ccc", ("ccc", Configuration.DynamicProfiles.Interfaces.Interface.Unit.Family.Ccc)), ("tcc", ("tcc", Configuration.DynamicProfiles.Interfaces.Interface.Unit.Family.Tcc)), ("vpls", ("vpls", Configuration.DynamicProfiles.Interfaces.Interface.Unit.Family.Vpls)), ("bridge", ("bridge", Configuration.DynamicProfiles.Interfaces.Interface.Unit.Family.Bridge)), ("ethernet-switching", ("ethernet_switching", Configuration.DynamicProfiles.Interfaces.Interface.Unit.Family.EthernetSwitching)), ("any", ("any", Configuration.DynamicProfiles.Interfaces.Interface.Unit.Family.Any))])&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; self._leafs = OrderedDict()&lt;/P&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and in new bundle, which I made couple of days ago there separate ordred dicts for container classes and for list classes&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 10pt;"&gt; def __init__(self):&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; super(Configuration.DynamicProfiles.Interfaces.Interface.Unit.Family, self).__init__()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV&gt;self.yang_name = "family"&lt;/DIV&gt;&lt;DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; self.yang_parent_name = "unit"&lt;/P&gt;&lt;P&gt;&amp;nbsp; self.is_top_level_class = False&lt;/P&gt;&lt;P&gt;&amp;nbsp; self.has_list_ancestor = True&lt;/P&gt;&lt;P&gt;&amp;nbsp; self.ylist_key_names = []&lt;/P&gt;&lt;P&gt; &lt;STRONG&gt;&lt;EM&gt; self._child_container_classes = OrderedDict([("inet", ("inet", Configuration.DynamicProfiles.Interfaces.Interface.Unit.Family.Inet)), ("iso", ("iso", Configuration.DynamicProfiles.Interfaces.Interface.Unit.Family.Iso)), ("inet6", ("inet6", Configuration.DynamicProfiles.Interfaces.Interface.Unit.Family.Inet6)), ("mpls", ("mpls", Configuration.DynamicProfiles.Interfaces.Interface.Unit.Family.Mpls)), ("mlppp", ("mlppp", Configuration.DynamicProfiles.Interfaces.Interface.Unit.Family.Mlppp)), ("mlfr-end-to-end", ("mlfr_end_to_end", Configuration.DynamicProfiles.Interfaces.Interface.Unit.Family.MlfrEndToEnd)), ("mlfr-uni-nni", ("mlfr_uni_nni", Configuration.DynamicProfiles.Interfaces.Interface.Unit.Family.MlfrUniNni)), ("ccc", ("ccc", Configuration.DynamicProfiles.Interfaces.Interface.Unit.Family.Ccc)), ("tcc", ("tcc", Configuration.DynamicProfiles.Interfaces.Interface.Unit.Family.Tcc)), ("vpls", ("vpls", Configuration.DynamicProfiles.Interfaces.Interface.Unit.Family.Vpls)), ("bridge", ("bridge", Configuration.DynamicProfiles.Interfaces.Interface.Unit.Family.Bridge)), ("ethernet-switching", ("ethernet_switching", Configuration.DynamicProfiles.Interfaces.Interface.Unit.Family.EthernetSwitching)), ("any", ("any", Configuration.DynamicProfiles.Interfaces.Interface.Unit.Family.Any))])&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;&amp;nbsp; self._child_list_classes = OrderedDict([])&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; self._leafs = OrderedDict()&lt;/P&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems there was a ydk-gen code update during last 2-3 weeks&amp;nbsp; and could that cause problems I face ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 May 2018 20:10:54 GMT</pubDate>
    <dc:creator>aligang1988</dc:creator>
    <dc:date>2018-05-24T20:10:54Z</dc:date>
    <item>
      <title>Error : ancestor for entity cannot be nullptr</title>
      <link>https://community.cisco.com/t5/tools/error-ancestor-for-entity-cannot-be-nullptr/m-p/3524605#M2303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi !&lt;BR /&gt;i tried to reproduce whole procedure, described here &lt;A href="https://community.cisco.com/thread/91766"&gt;NetconfServiceProvider is not able to establish ssh tunnel&lt;/A&gt;&amp;nbsp; once again.I performed the same steps (as I believe), but now I get such error :&lt;/P&gt;&lt;P&gt;"&lt;BR /&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;Traceback (most recent call last):&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;&amp;nbsp; File "../../ydk/trash/1.py", line 80, in &amp;lt;module&amp;gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; xml_payload = codec.encode(provider, configuration)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;&amp;nbsp; File "/home/alex-limonov/ydk0.7.1_py3.5/lib/python3.5/site-packages/ydk/errors/error_handler.py", line 112, in helper&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return func(self, provider, entity, *args, **kwargs)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;&amp;nbsp; File "/home/alex-limonov/ydk0.7.1_py3.5/lib/python3.5/site-packages/ydk/services/codec_service.py", line 78, in encode&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return self._encode(provider, entity_holder, pretty, subtree)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;&amp;nbsp; File "/home/alex-limonov/ydk0.7.1_py3.5/lib/python3.5/site-packages/ydk/services/codec_service.py", line 110, in _encode&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return result&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;&amp;nbsp; File "/usr/lib/python3.5/contextlib.py", line 77, in __exit__&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; self.gen.throw(type, value, traceback)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;&amp;nbsp; File "/home/alex-limonov/ydk0.7.1_py3.5/lib/python3.5/site-packages/ydk/errors/error_handler.py", line 82, in handle_runtime_error&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; _raise(_exc)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;&amp;nbsp; File "/home/alex-limonov/ydk0.7.1_py3.5/lib/python3.5/site-packages/ydk/errors/error_handler.py", line 54, in _raise&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; exec("raise exc from None")&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;&amp;nbsp; File "&amp;lt;string&amp;gt;", line 1, in &amp;lt;module&amp;gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 8pt;"&gt;ydk.errors.YInvalidArgumentError:&amp;nbsp; ancestor for entity cannot be nullptr as one of the ancestors is a list. Path: inet&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here (&lt;A href="https://github.com/CiscoDevNet/ydk-gen/issues/629" title="https://github.com/CiscoDevNet/ydk-gen/issues/629"&gt;https://github.com/CiscoDevNet/ydk-gen/issues/629&lt;/A&gt;) i found information that this problem was already fixed and merged you &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could plz help&amp;nbsp; to find may be&amp;nbsp; the problem ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2018 21:27:42 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/error-ancestor-for-entity-cannot-be-nullptr/m-p/3524605#M2303</guid>
      <dc:creator>aligang1988</dc:creator>
      <dc:date>2018-05-22T21:27:42Z</dc:date>
    </item>
    <item>
      <title>Re: Error : ancestor for entity cannot be nullptr</title>
      <link>https://community.cisco.com/t5/tools/error-ancestor-for-entity-cannot-be-nullptr/m-p/3524606#M2304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The fix for #629 was for presence container inside a list. The error you are seeing can also occur if one of the ancestor lists is not populated. Can you please provide the YDK version info, your python script and any logs?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;pip list|grep ydk&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2018 18:33:15 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/error-ancestor-for-entity-cannot-be-nullptr/m-p/3524606#M2304</guid>
      <dc:creator>abhirame</dc:creator>
      <dc:date>2018-05-23T18:33:15Z</dc:date>
    </item>
    <item>
      <title>Re: Error : ancestor for entity cannot be nullptr</title>
      <link>https://community.cisco.com/t5/tools/error-ancestor-for-entity-cannot-be-nullptr/m-p/3524607#M2305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for quick response !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pip list | grep ydk&lt;/P&gt;&lt;P&gt;ydk&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.7.1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code and log in attachement&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2018 20:02:00 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/error-ancestor-for-entity-cannot-be-nullptr/m-p/3524607#M2305</guid>
      <dc:creator>aligang1988</dc:creator>
      <dc:date>2018-05-23T20:02:00Z</dc:date>
    </item>
    <item>
      <title>Re: Error : ancestor for entity cannot be nullptr</title>
      <link>https://community.cisco.com/t5/tools/error-ancestor-for-entity-cannot-be-nullptr/m-p/3524608#M2306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please refer to this developer guide: &lt;A href="http://ydk.cisco.com/py/docs/guides/crud_guide.html#creating-a-configuration-with-a-list-and-a-presence-class" title="http://ydk.cisco.com/py/docs/guides/crud_guide.html#creating-a-configuration-with-a-list-and-a-presence-class"&gt;http://ydk.cisco.com/py/docs/guides/crud_guide.html#creating-a-configuration-with-a-list-and-a-presence-class&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The below code worked for me:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;configuration = junos_configuration.Configuration()
ge000 = configuration.interfaces.Interface()
ge000.name = "ge-0/0/0"

ge000unit0 = ge000.Unit()
ge000unit0.name = "0"

# Create presence node
ge000unit0.family.inet = ge000unit0.family.Inet()

ge000unit0inetaddress = ge000unit0.family.inet.Address()
ge000unit0inetaddress.name = "10.10.10.103/24"

ge000unit0.family.inet.address.append(ge000unit0inetaddress)
ge000.unit.append(ge000unit0)
configuration.interfaces.interface.append(ge000)

&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="xml" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_1527192243505559" jivemacro_uid="_1527192243505559"&gt;
&lt;P&gt;print(codec.encode(codec_p,configuration))&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;lt;configuration xmlns="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://yang.juniper.net/yang/1.1/jc" rel="nofollow" target="_blank"&gt;http://yang.juniper.net/yang/1.1/jc&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;lt;interfaces&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;interface&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;name&amp;gt;ge-0/0/0&amp;lt;/name&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;unit&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;name&amp;gt;0&amp;lt;/name&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;family&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;inet&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;address&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;name&amp;gt;10.10.10.103/24&amp;lt;/name&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/address&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/inet&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/family&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/unit&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/interface&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;lt;/interfaces&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;lt;/configuration&amp;gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;



&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 May 2018 17:54:52 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/error-ancestor-for-entity-cannot-be-nullptr/m-p/3524608#M2306</guid>
      <dc:creator>abhirame</dc:creator>
      <dc:date>2018-05-24T17:54:52Z</dc:date>
    </item>
    <item>
      <title>Re: Error : ancestor for entity cannot be nullptr</title>
      <link>https://community.cisco.com/t5/tools/error-ancestor-for-entity-cannot-be-nullptr/m-p/3524609#M2307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Which version of vendor yang models did you use ?&lt;BR /&gt;I used 17.1R1, and there&amp;nbsp; container "Inet" has prorperty of Presence=True,&amp;nbsp; and&amp;nbsp; Class Family() has no instruction in constructor method Init() to create&amp;nbsp; non-zero inet &lt;SPAN style="font-size: 13.3333px;"&gt;attribute&lt;/SPAN&gt; ( in my configureation.py file it is self.inet&amp;nbsp; = &lt;SPAN style="font-size: 13.3333px;"&gt;None )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;That is why such code &lt;BR /&gt;&lt;BR /&gt;configuration = junos_configuration.Configuration()&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ge000 = configuration.interfaces.Interface()&lt;/P&gt;&lt;P&gt;ge000.name = &lt;SPAN style="color: #ce9178;"&gt;"ge-0/0/0"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;configuration.interfaces.interface.append(ge000)&lt;/P&gt;&lt;P&gt;ge000unit0 = ge000.Unit()&lt;/P&gt;&lt;P&gt;ge000unit0.name = &lt;SPAN style="color: #ce9178;"&gt;"0"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;ge000.unit.append(ge000unit0)&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;pprint.pprint(&lt;SPAN style="color: #dcdcaa;"&gt;dir&lt;/SPAN&gt;(ge000unit0.family))&lt;/P&gt;&lt;P&gt;pprint.pprint(&lt;SPAN style="color: #dcdcaa;"&gt;vars&lt;/SPAN&gt;(ge000unit0.family))&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;returns the output from attachment, where inet attribute of Famiy object is unassigned, consequently&amp;nbsp; this format of use &lt;BR /&gt;does not work for me =((&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 May 2018 19:47:23 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/error-ancestor-for-entity-cannot-be-nullptr/m-p/3524609#M2307</guid>
      <dc:creator>aligang1988</dc:creator>
      <dc:date>2018-05-24T19:47:23Z</dc:date>
    </item>
    <item>
      <title>Re: Error : ancestor for entity cannot be nullptr</title>
      <link>https://community.cisco.com/t5/tools/error-ancestor-for-entity-cannot-be-nullptr/m-p/3524610#M2308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry I left out one line where I created the .inet presence node. Please see the above code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using 17R1 also&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 May 2018 20:03:27 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/error-ancestor-for-entity-cannot-be-nullptr/m-p/3524610#M2308</guid>
      <dc:creator>abhirame</dc:creator>
      <dc:date>2018-05-24T20:03:27Z</dc:date>
    </item>
    <item>
      <title>Re: Error : ancestor for entity cannot be nullptr</title>
      <link>https://community.cisco.com/t5/tools/error-ancestor-for-entity-cannot-be-nullptr/m-p/3524611#M2309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found one interesting thing about constructor method for class Family()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;In old bundle, which I prepared couple weeks ago all child classes&amp;nbsp; are listed within the same ordered dict &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt; def __init__(self):&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; super(Configuration.DynamicProfiles.Interfaces.Interface.Unit.Family, self).__init__()&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&amp;nbsp; self.yang_name = "family"&lt;/P&gt;&lt;P&gt;&amp;nbsp; self.yang_parent_name = "unit"&lt;/P&gt;&lt;P&gt;&amp;nbsp; self.is_top_level_class = False&lt;/P&gt;&lt;P&gt;&amp;nbsp; self.has_list_ancestor = True&lt;/P&gt;&lt;P&gt;&amp;nbsp; self.ylist_key_names = []&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;&amp;nbsp; self._child_classes = OrderedDict([("inet", ("inet", Configuration.DynamicProfiles.Interfaces.Interface.Unit.Family.Inet)), ("iso", ("iso", Configuration.DynamicProfiles.Interfaces.Interface.Unit.Family.Iso)), ("inet6", ("inet6", Configuration.DynamicProfiles.Interfaces.Interface.Unit.Family.Inet6)), ("mpls", ("mpls", Configuration.DynamicProfiles.Interfaces.Interface.Unit.Family.Mpls)), ("mlppp", ("mlppp", Configuration.DynamicProfiles.Interfaces.Interface.Unit.Family.Mlppp)), ("mlfr-end-to-end", ("mlfr_end_to_end", Configuration.DynamicProfiles.Interfaces.Interface.Unit.Family.MlfrEndToEnd)), ("mlfr-uni-nni", ("mlfr_uni_nni", Configuration.DynamicProfiles.Interfaces.Interface.Unit.Family.MlfrUniNni)), ("ccc", ("ccc", Configuration.DynamicProfiles.Interfaces.Interface.Unit.Family.Ccc)), ("tcc", ("tcc", Configuration.DynamicProfiles.Interfaces.Interface.Unit.Family.Tcc)), ("vpls", ("vpls", Configuration.DynamicProfiles.Interfaces.Interface.Unit.Family.Vpls)), ("bridge", ("bridge", Configuration.DynamicProfiles.Interfaces.Interface.Unit.Family.Bridge)), ("ethernet-switching", ("ethernet_switching", Configuration.DynamicProfiles.Interfaces.Interface.Unit.Family.EthernetSwitching)), ("any", ("any", Configuration.DynamicProfiles.Interfaces.Interface.Unit.Family.Any))])&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; self._leafs = OrderedDict()&lt;/P&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and in new bundle, which I made couple of days ago there separate ordred dicts for container classes and for list classes&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 10pt;"&gt; def __init__(self):&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; super(Configuration.DynamicProfiles.Interfaces.Interface.Unit.Family, self).__init__()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV&gt;self.yang_name = "family"&lt;/DIV&gt;&lt;DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; self.yang_parent_name = "unit"&lt;/P&gt;&lt;P&gt;&amp;nbsp; self.is_top_level_class = False&lt;/P&gt;&lt;P&gt;&amp;nbsp; self.has_list_ancestor = True&lt;/P&gt;&lt;P&gt;&amp;nbsp; self.ylist_key_names = []&lt;/P&gt;&lt;P&gt; &lt;STRONG&gt;&lt;EM&gt; self._child_container_classes = OrderedDict([("inet", ("inet", Configuration.DynamicProfiles.Interfaces.Interface.Unit.Family.Inet)), ("iso", ("iso", Configuration.DynamicProfiles.Interfaces.Interface.Unit.Family.Iso)), ("inet6", ("inet6", Configuration.DynamicProfiles.Interfaces.Interface.Unit.Family.Inet6)), ("mpls", ("mpls", Configuration.DynamicProfiles.Interfaces.Interface.Unit.Family.Mpls)), ("mlppp", ("mlppp", Configuration.DynamicProfiles.Interfaces.Interface.Unit.Family.Mlppp)), ("mlfr-end-to-end", ("mlfr_end_to_end", Configuration.DynamicProfiles.Interfaces.Interface.Unit.Family.MlfrEndToEnd)), ("mlfr-uni-nni", ("mlfr_uni_nni", Configuration.DynamicProfiles.Interfaces.Interface.Unit.Family.MlfrUniNni)), ("ccc", ("ccc", Configuration.DynamicProfiles.Interfaces.Interface.Unit.Family.Ccc)), ("tcc", ("tcc", Configuration.DynamicProfiles.Interfaces.Interface.Unit.Family.Tcc)), ("vpls", ("vpls", Configuration.DynamicProfiles.Interfaces.Interface.Unit.Family.Vpls)), ("bridge", ("bridge", Configuration.DynamicProfiles.Interfaces.Interface.Unit.Family.Bridge)), ("ethernet-switching", ("ethernet_switching", Configuration.DynamicProfiles.Interfaces.Interface.Unit.Family.EthernetSwitching)), ("any", ("any", Configuration.DynamicProfiles.Interfaces.Interface.Unit.Family.Any))])&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;&amp;nbsp; self._child_list_classes = OrderedDict([])&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; self._leafs = OrderedDict()&lt;/P&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems there was a ydk-gen code update during last 2-3 weeks&amp;nbsp; and could that cause problems I face ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 May 2018 20:10:54 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/error-ancestor-for-entity-cannot-be-nullptr/m-p/3524611#M2309</guid>
      <dc:creator>aligang1988</dc:creator>
      <dc:date>2018-05-24T20:10:54Z</dc:date>
    </item>
    <item>
      <title>Re: Error : ancestor for entity cannot be nullptr</title>
      <link>https://community.cisco.com/t5/tools/error-ancestor-for-entity-cannot-be-nullptr/m-p/3524612#M2310</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes. There was an update in this, but I dont think that is causing this issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you try the updated code here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.cisco.com/message/291482"&gt;Re: Error : ancestor for entity cannot be nullptr&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 May 2018 20:24:00 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/error-ancestor-for-entity-cannot-be-nullptr/m-p/3524612#M2310</guid>
      <dc:creator>abhirame</dc:creator>
      <dc:date>2018-05-24T20:24:00Z</dc:date>
    </item>
    <item>
      <title>Re: Error : ancestor for entity cannot be nullptr</title>
      <link>https://community.cisco.com/t5/tools/error-ancestor-for-entity-cannot-be-nullptr/m-p/3524613#M2311</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unfortunately&amp;nbsp; result is the same =(&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "&amp;lt;string&amp;gt;", line 1, in &amp;lt;module&amp;gt;&lt;/P&gt;&lt;P&gt;ydk.errors.YInvalidArgumentError:&amp;nbsp; ancestor for entity cannot be nullptr as one of the ancestors is a list. Path: inet&lt;/P&gt;&lt;P&gt;"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also previously you mentioned that reason of trouble may be &lt;STRONG&gt;&lt;EM&gt;"i&lt;SPAN style="color: #3d3d3d; font-family: arial; font-size: 12px;"&gt;f one of the ancestor lists is not populated&lt;/SPAN&gt;" &lt;/EM&gt;&lt;/STRONG&gt; , i am sorry if am asking about something trivial, but what does it mean ? As I could conclude we always provide root object(Configuration() in my case ) to CRUD or CODEC service.Whether some of child object were created, but only part of them were appended to ancestor list-type attribute&amp;nbsp; - we would receive only partial payload(those xml/json blocks which correspond to appended child jobjects).When we append no child objects to ancestor list-type attribute - we should simply see total absence of corresponding xml blocks. So why this message appear ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 May 2018 21:15:36 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/error-ancestor-for-entity-cannot-be-nullptr/m-p/3524613#M2311</guid>
      <dc:creator>aligang1988</dc:creator>
      <dc:date>2018-05-24T21:15:36Z</dc:date>
    </item>
    <item>
      <title>Re: Error : ancestor for entity cannot be nullptr</title>
      <link>https://community.cisco.com/t5/tools/error-ancestor-for-entity-cannot-be-nullptr/m-p/3524614#M2312</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That does not apply in this case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure what is going on as the same code with the same environment is working for me, but not for you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 May 2018 22:31:57 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/error-ancestor-for-entity-cannot-be-nullptr/m-p/3524614#M2312</guid>
      <dc:creator>abhirame</dc:creator>
      <dc:date>2018-05-24T22:31:57Z</dc:date>
    </item>
    <item>
      <title>Re: Error : ancestor for entity cannot be nullptr</title>
      <link>https://community.cisco.com/t5/tools/error-ancestor-for-entity-cannot-be-nullptr/m-p/3524615#M2313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Pretty strange, I agree&lt;BR /&gt;i use Ubuntu 17.10 and tried both versions of python (2.7 and 3.5) to build bundle and use it withing code&lt;BR /&gt;May I ask you to send your environment info&amp;nbsp; ? Currently I may suspect only dependency problems&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 May 2018 16:06:59 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/error-ancestor-for-entity-cannot-be-nullptr/m-p/3524615#M2313</guid>
      <dc:creator>aligang1988</dc:creator>
      <dc:date>2018-05-25T16:06:59Z</dc:date>
    </item>
    <item>
      <title>Re: Error : ancestor for entity cannot be nullptr</title>
      <link>https://community.cisco.com/t5/tools/error-ancestor-for-entity-cannot-be-nullptr/m-p/3524616#M2314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I see you have ydk (0.7.1).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have ydk (0.7.2-dev). To install this, can you please try the below?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;pip uninstall ydk -y
cd ydk-gen/sdk/python/core
python setup.py sdist
pip install dist/ydk-0.7.2*.tar.gz
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 May 2018 16:53:36 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/error-ancestor-for-entity-cannot-be-nullptr/m-p/3524616#M2314</guid>
      <dc:creator>abhirame</dc:creator>
      <dc:date>2018-05-25T16:53:36Z</dc:date>
    </item>
    <item>
      <title>Re: Error : ancestor for entity cannot be nullptr</title>
      <link>https://community.cisco.com/t5/tools/error-ancestor-for-entity-cannot-be-nullptr/m-p/3524617#M2315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN&gt;I downloaded ydk 0.7.2&amp;nbsp; (git clone &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://github.com/CiscoDevNet/ydk-gen.git" rel="nofollow" target="_blank"&gt;https://github.com/CiscoDevNet/ydk-gen.git&lt;/A&gt;&lt;SPAN&gt; -b master)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt; and native libydk package (wget &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://devhub.cisco.com/artifactory/debian-ydk/0.7.1/artful/libydk_0.7.1-1_amd64.deb" rel="nofollow" target="_blank"&gt;http://devhub.cisco.com/artifactory/debian-ydk/0.7.1/artful/libydk_0.7.1-1_amd64.deb&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After that i could generate python ydk core package, vendor yang-based package &lt;BR /&gt;"&lt;BR /&gt;cd ydk-gen&lt;BR /&gt;./generate --python --core&lt;BR /&gt;./generate --python --bundle junos.json&lt;BR /&gt;pip install gen-api/python/ydk/dist/ydk-0.7.2.dev0.tar.gz&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;pip install gen-api/python/junos-bundle/dist/ydk-models-junos-17.1.1.tar.gz&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;"&lt;/P&gt;&lt;P&gt;and run my test code&lt;BR /&gt; &lt;/P&gt;&lt;P&gt;That works pretty fine for both python2.7 and python3.6&lt;/P&gt;&lt;P&gt;Thanks for help !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 May 2018 15:59:20 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/error-ancestor-for-entity-cannot-be-nullptr/m-p/3524617#M2315</guid>
      <dc:creator>aligang1988</dc:creator>
      <dc:date>2018-05-26T15:59:20Z</dc:date>
    </item>
  </channel>
</rss>

