<?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: BGP Oper Path error in Tools</title>
    <link>https://community.cisco.com/t5/tools/bgp-oper-path-error/m-p/3433426#M2503</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm able to reproduce your issue on XE 16.5.1. It appears YDK (via libyang) has detected there has been a backward incompatible change in the yang model Cisco-IOS-XE-bgp-oper.yang between XE 16.6.1 and 16.5.1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro _jivemacro_uid_15088737459587902 jive_macro_code" jivemacro_uid="_15088737459587902" modifiedtitle="true"&gt;
&lt;P&gt;#sh ve&lt;/P&gt;
&lt;P&gt;Cisco IOS XE Software, Version 16.05.01b&lt;/P&gt;
&lt;P&gt;Cisco IOS&lt;/P&gt;
&lt;/PRE&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_15088737541546245" jivemacro_uid="_15088737541546245"&gt;
&lt;P&gt;Software [Everest], Virtual XE Software (X86_64_LINUX_IOSD-UNIVERSALK9-M), Version 16.5.1b, RELEASE SOFTWARE (fc1)&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The latest ydk XE bundle is &lt;A href="http://ydk.cisco.com/py/docs/ydk.models.cisco_ios_xe.html"&gt;generated for 16.6.1&lt;/A&gt;. YDK APIs are purely based on the yang models. So, when a model contains a backward incompatible change, you get such an error. To fix this, you need to generate &amp;amp; use the XE 16.5.1 YDK bundle.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_15088740687403359" jivemacro_uid="_15088740687403359" modifiedtitle="true"&gt;
&lt;P&gt;pip uninstall ydk-models-cisco-ios-xe&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;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 0.6.1&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;cd ydk-gen&lt;/P&gt;
&lt;P&gt;./generate --bundle profiles/bundles/cisco-ios-xe_16_5_1.json &lt;/P&gt;
&lt;P&gt;pip install gen-api/python/cisco_ios_xe*/dist/ydk*.tar.gz&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The incompatible change in the models can be seen here:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;A href="https://github.com/YangModels/yang/blob/master/vendor/cisco/xe/1651/Cisco-IOS-XE-bgp-oper.yang#L720" title="https://github.com/YangModels/yang/blob/master/vendor/cisco/xe/1651/Cisco-IOS-XE-bgp-oper.yang#L720"&gt;yang/Cisco-IOS-XE-bgp-oper.yang at master · YangModels/yang · GitHub&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://github.com/YangModels/yang/blob/master/vendor/cisco/xe/1661/Cisco-IOS-XE-bgp-oper.yang#L625" title="https://github.com/YangModels/yang/blob/master/vendor/cisco/xe/1661/Cisco-IOS-XE-bgp-oper.yang#L625"&gt;yang/Cisco-IOS-XE-bgp-oper.yang at master · YangModels/yang · GitHub&lt;/A&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Oct 2017 19:45:28 GMT</pubDate>
    <dc:creator>abhirame</dc:creator>
    <dc:date>2017-10-24T19:45:28Z</dc:date>
    <item>
      <title>BGP Oper Path error</title>
      <link>https://community.cisco.com/t5/tools/bgp-oper-path-error/m-p/3433421#M2498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; from ydk.providers import NetconfServiceProvider&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; from ydk.services import CRUDService&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; from ydk.models.cisco_ios_xe import Cisco_IOS_XE_bgp_oper as bgp_oper&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; provider = NetconfServiceProvider(address="192.168.229.250",port=10000,username="admin",password="admin")&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; crud = CRUDService()&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; bgp_oper = bgp_oper.BgpStateData.Neighbors()&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; bgp_oper&lt;/P&gt;&lt;P&gt;&amp;lt;ydk.models.cisco_ios_xe.Cisco_IOS_XE_bgp_oper.Neighbors object at 0x7f8a7eb7b110&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; crud.read(provider,bgp_oper)&lt;/P&gt;&lt;P&gt;Traceback (most recent call last):&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "&amp;lt;stdin&amp;gt;", line 1, in &amp;lt;module&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "/usr/lib64/python2.7/site-packages/ydk/errors/error_handler.py", line 112, in helper&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return func(self, provider, entity, *args, **kwargs)&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "/usr/lib64/python2.7/site-packages/ydk/services/crud_service.py", line 35, in read&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return self._crud.read(provider, read_filter)&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "/usr/lib64/python2.7/contextlib.py", line 35, in __exit__&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; self.gen.throw(type, value, traceback)&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "/usr/lib64/python2.7/site-packages/ydk/errors/error_handler.py", line 82, in handle_runtime_error&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; _raise(_exc)&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "/usr/lib64/python2.7/site-packages/ydk/errors/error_handler.py", line 56, in _raise&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; raise exc&lt;/P&gt;&lt;P&gt;ydk.errors.YPYInvalidArgumentError:&amp;nbsp; Path is invalid: Cisco-IOS-XE-bgp-oper:bgp-state-data/neighbors&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone have any idea what I'm doing wrong here?&amp;nbsp; I think I have the path correct according to this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://ydk.cisco.com/py/docs/gen_doc_ed0e7f5cd40f3bc80e0adca92a7c5a80bb92a26f.html#ydk.models.cisco_ios_xe.Cisco_IOS_XE_bgp_oper.BgpStateData.Neighbors" title="http://ydk.cisco.com/py/docs/gen_doc_ed0e7f5cd40f3bc80e0adca92a7c5a80bb92a26f.html#ydk.models.cisco_ios_xe.Cisco_IOS_XE_bgp_oper.BgpStateData.Neighbors"&gt;http://ydk.cisco.com/py/docs/gen_doc_ed0e7f5cd40f3bc80e0adca92a7c5a80bb92a26f.html#ydk.models.cisco_ios_xe.Cisco_IOS_XE_…&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Oct 2017 15:25:27 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/bgp-oper-path-error/m-p/3433421#M2498</guid>
      <dc:creator>crench92</dc:creator>
      <dc:date>2017-10-16T15:25:27Z</dc:date>
    </item>
    <item>
      <title>Re: BGP Oper Path error</title>
      <link>https://community.cisco.com/t5/tools/bgp-oper-path-error/m-p/3433422#M2499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Brandon,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It looks like you are passing a non-top level container to the crud service. For ydk &amp;gt;0.6.0, when using CRUDService and other services, using a child container or list, which is not the top-level node in a yang model is no longer supported.&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;from ydk.models.cisco_ios_xe import Cisco_IOS_XE_bgp_oper as bgp_oper&lt;/P&gt;&lt;P&gt;from ydk.services import CRUDService&lt;/P&gt;&lt;P&gt;from ydk.providers import NetconfServiceProvider&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;... # connect to provider etc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;neighbors = bgp_oper.BgpStateData.Neighbors()&lt;/P&gt;&lt;P&gt;crud.read(provider, neighbors)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now has to be changed to:&lt;/P&gt;&lt;P&gt;from ydk.models.cisco_ios_xe import Cisco_IOS_XE_bgp_oper as bgp_oper&lt;/P&gt;&lt;P&gt;from ydk.services import CRUDService&lt;/P&gt;&lt;P&gt;from ydk.providers import NetconfServiceProvider&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;... # connect to provider etc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;bgp_state = bgp_oper.BgpStateData()&lt;/P&gt;&lt;P&gt;crud.read(provider, bgp_state)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you try the above, it should work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This backward incompatibility has now been noted in the release notes (https://github.com/CiscoDevNet/ydk-py/releases/tag/0.6.0).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Oct 2017 23:30:06 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/bgp-oper-path-error/m-p/3433422#M2499</guid>
      <dc:creator>abhirame</dc:creator>
      <dc:date>2017-10-16T23:30:06Z</dc:date>
    </item>
    <item>
      <title>Re: BGP Oper Path error</title>
      <link>https://community.cisco.com/t5/tools/bgp-oper-path-error/m-p/3433423#M2500</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;same error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Python 2.7.5 (default, Nov&amp;nbsp; 6 2016, 00:28:07)&lt;/P&gt;&lt;P&gt;[GCC 4.8.5 20150623 (Red Hat 4.8.5-11)] on linux2&lt;/P&gt;&lt;P&gt;Type "help", "copyright", "credits" or "license" for more information.&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; from ydk.models.cisco_ios_xe import Cisco_IOS_XE_bgp_oper as bgp_oper&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; from ydk.services import CRUDService&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; from ydk.providers import NetconfServiceProvider&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; provider = NetconfServiceProvider(address="192.168.229.250",port=10000,username="admin",password="admin")&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; neighbors = bgp_oper.BgpStateData()&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; crud.read(provider, neighbors)&lt;/P&gt;&lt;P&gt;Traceback (most recent call last):&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "&amp;lt;stdin&amp;gt;", line 1, in &amp;lt;module&amp;gt;&lt;/P&gt;&lt;P&gt;NameError: name 'crud' is not defined&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; crud = CRUDService()&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; crud.read(provider, neighbors)&lt;/P&gt;&lt;P&gt;Traceback (most recent call last):&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "&amp;lt;stdin&amp;gt;", line 1, in &amp;lt;module&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "/usr/lib64/python2.7/site-packages/ydk/errors/error_handler.py", line 112, in helper&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return func(self, provider, entity, *args, **kwargs)&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "/usr/lib64/python2.7/site-packages/ydk/services/crud_service.py", line 35, in read&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return self._crud.read(provider, read_filter)&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "/usr/lib64/python2.7/contextlib.py", line 35, in __exit__&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; self.gen.throw(type, value, traceback)&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "/usr/lib64/python2.7/site-packages/ydk/errors/error_handler.py", line 82, in handle_runtime_error&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; _raise(_exc)&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "/usr/lib64/python2.7/site-packages/ydk/errors/error_handler.py", line 56, in _raise&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; raise exc&lt;/P&gt;&lt;P&gt;ydk.errors.YPYInvalidArgumentError:&amp;nbsp; Path is invalid: Cisco-IOS-XE-bgp-oper:bgp-state-data&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Oct 2017 18:04:53 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/bgp-oper-path-error/m-p/3433423#M2500</guid>
      <dc:creator>crench92</dc:creator>
      <dc:date>2017-10-21T18:04:53Z</dc:date>
    </item>
    <item>
      <title>Re: BGP Oper Path error</title>
      <link>https://community.cisco.com/t5/tools/bgp-oper-path-error/m-p/3433424#M2501</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN&gt;Can you enable logging &amp;lt;&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://ydk.cisco.com/py/docs/guides/introduction.html#logging" rel="nofollow" target="_blank"&gt;http://ydk.cisco.com/py/docs/guides/introduction.html#logging&lt;/A&gt;&lt;SPAN&gt;&amp;gt; before doing the crud.read() and post the logs?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, can you verify if your device support this yang model (it should be documented / advertise it in netconf capabilities)?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Oct 2017 15:47:42 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/bgp-oper-path-error/m-p/3433424#M2501</guid>
      <dc:creator>abhirame</dc:creator>
      <dc:date>2017-10-23T15:47:42Z</dc:date>
    </item>
    <item>
      <title>Re: BGP Oper Path error</title>
      <link>https://community.cisco.com/t5/tools/bgp-oper-path-error/m-p/3433425#M2502</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;[root@HTENNOCDDAT01 ~]# python3.6&lt;/P&gt;&lt;P&gt;Python 3.6.2 (default, Jul 18 2017, 22:59:34)&lt;/P&gt;&lt;P&gt;[GCC 4.8.5 20150623 (Red Hat 4.8.5-11)] on linux&lt;/P&gt;&lt;P&gt;Type "help", "copyright", "credits" or "license" for more information.&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; from ncclient import manager&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; HOST = '192.168.229.250'&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; PORT = 10000&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; USER = 'admin'&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; PASS = 'admin'&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; with manager.connect(host=HOST, port=PORT, username=USER, password=PASS, hos&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; tkey_verify=False,device_params={'name':'default'}, look_for_keys=False, allow_agent=False) as m:&lt;/P&gt;&lt;P&gt;...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for capability in m.server_capabilities:&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; print(capability.split('?')[0])&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;(output cut)&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://cisco.com/ns/yang/Cisco-IOS-XE-bgp-oper" rel="nofollow" target="_blank"&gt;http://cisco.com/ns/yang/Cisco-IOS-XE-bgp-oper&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[root@HTENNOCDDAT01 ~]# python&lt;/P&gt;&lt;P&gt;Python 2.7.5 (default, Nov&amp;nbsp; 6 2016, 00:28:07)&lt;/P&gt;&lt;P&gt;[GCC 4.8.5 20150623 (Red Hat 4.8.5-11)] on linux2&lt;/P&gt;&lt;P&gt;Type "help", "copyright", "credits" or "license" for more information.&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; from ydk.models.cisco_ios_xe import Cisco_IOS_XE_bgp_oper as bgp_oper&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; from ydk.services import CRUDService&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; from ydk.providers import NetconfServiceProvider&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; provider = NetconfServiceProvider(address="192.168.229.250",port=10000,username="admin",password="admin")&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; import logging&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; log = logging.getlogger('ydk')&lt;/P&gt;&lt;P&gt;Traceback (most recent call last):&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "&amp;lt;stdin&amp;gt;", line 1, in &amp;lt;module&amp;gt;&lt;/P&gt;&lt;P&gt;AttributeError: 'module' object has no attribute 'getlogger'&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; log = logging.getLogger('ydk')&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; log.setLevel(logging.INFO)&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; handler = logging.StreamHandler()&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; log.addHandler(handler)&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; neighbors = bgp_oper.BgpStateData()&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; crud = CRUDService()&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; crud.read(provider, neighbors)&lt;/P&gt;&lt;P&gt;Executing CRUD read operation&lt;/P&gt;&lt;P&gt;Libyang ERROR: Schema node not found. Path: '/Cisco-IOS-XE-bgp-oper:bgp-state-data'&lt;/P&gt;&lt;P&gt;Path 'Cisco-IOS-XE-bgp-oper:bgp-state-data' is invalid&lt;/P&gt;&lt;P&gt;Traceback (most recent call last):&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "&amp;lt;stdin&amp;gt;", line 1, in &amp;lt;module&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "/usr/lib64/python2.7/site-packages/ydk/errors/error_handler.py", line 112, in helper&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return func(self, provider, entity, *args, **kwargs)&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "/usr/lib64/python2.7/site-packages/ydk/services/crud_service.py", line 35, in read&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return self._crud.read(provider, read_filter)&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "/usr/lib64/python2.7/contextlib.py", line 35, in __exit__&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; self.gen.throw(type, value, traceback)&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "/usr/lib64/python2.7/site-packages/ydk/errors/error_handler.py", line 82, in handle_runtime_error&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; _raise(_exc)&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "/usr/lib64/python2.7/site-packages/ydk/errors/error_handler.py", line 56, in _raise&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; raise exc&lt;/P&gt;&lt;P&gt;ydk.errors.YPYInvalidArgumentError:&amp;nbsp; Path is invalid: Cisco-IOS-XE-bgp-oper:bgp-state-data&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; exit()&lt;/P&gt;&lt;P&gt;Disconnected from device&lt;/P&gt;&lt;P&gt;Disconnected from device&lt;/P&gt;&lt;P&gt;[root@HTENNOCDDAT01 ~]# pip list | grep ydk&lt;/P&gt;&lt;P&gt;ydk (0.6.1)&lt;/P&gt;&lt;P&gt;ydk-models-cisco-ios-xe (16.6.1.post1)&lt;/P&gt;&lt;P&gt;ydk-models-cisco-ios-xr (6.3.1)&lt;/P&gt;&lt;P&gt;ydk-models-ietf (0.1.4)&lt;/P&gt;&lt;P&gt;ydk-models-openconfig (0.1.4)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Seems to be an issue with Libyang&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Oct 2017 21:01:37 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/bgp-oper-path-error/m-p/3433425#M2502</guid>
      <dc:creator>crench92</dc:creator>
      <dc:date>2017-10-23T21:01:37Z</dc:date>
    </item>
    <item>
      <title>Re: BGP Oper Path error</title>
      <link>https://community.cisco.com/t5/tools/bgp-oper-path-error/m-p/3433426#M2503</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm able to reproduce your issue on XE 16.5.1. It appears YDK (via libyang) has detected there has been a backward incompatible change in the yang model Cisco-IOS-XE-bgp-oper.yang between XE 16.6.1 and 16.5.1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro _jivemacro_uid_15088737459587902 jive_macro_code" jivemacro_uid="_15088737459587902" modifiedtitle="true"&gt;
&lt;P&gt;#sh ve&lt;/P&gt;
&lt;P&gt;Cisco IOS XE Software, Version 16.05.01b&lt;/P&gt;
&lt;P&gt;Cisco IOS&lt;/P&gt;
&lt;/PRE&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_15088737541546245" jivemacro_uid="_15088737541546245"&gt;
&lt;P&gt;Software [Everest], Virtual XE Software (X86_64_LINUX_IOSD-UNIVERSALK9-M), Version 16.5.1b, RELEASE SOFTWARE (fc1)&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The latest ydk XE bundle is &lt;A href="http://ydk.cisco.com/py/docs/ydk.models.cisco_ios_xe.html"&gt;generated for 16.6.1&lt;/A&gt;. YDK APIs are purely based on the yang models. So, when a model contains a backward incompatible change, you get such an error. To fix this, you need to generate &amp;amp; use the XE 16.5.1 YDK bundle.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_15088740687403359" jivemacro_uid="_15088740687403359" modifiedtitle="true"&gt;
&lt;P&gt;pip uninstall ydk-models-cisco-ios-xe&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;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 0.6.1&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;cd ydk-gen&lt;/P&gt;
&lt;P&gt;./generate --bundle profiles/bundles/cisco-ios-xe_16_5_1.json &lt;/P&gt;
&lt;P&gt;pip install gen-api/python/cisco_ios_xe*/dist/ydk*.tar.gz&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The incompatible change in the models can be seen here:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;A href="https://github.com/YangModels/yang/blob/master/vendor/cisco/xe/1651/Cisco-IOS-XE-bgp-oper.yang#L720" title="https://github.com/YangModels/yang/blob/master/vendor/cisco/xe/1651/Cisco-IOS-XE-bgp-oper.yang#L720"&gt;yang/Cisco-IOS-XE-bgp-oper.yang at master · YangModels/yang · GitHub&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://github.com/YangModels/yang/blob/master/vendor/cisco/xe/1661/Cisco-IOS-XE-bgp-oper.yang#L625" title="https://github.com/YangModels/yang/blob/master/vendor/cisco/xe/1661/Cisco-IOS-XE-bgp-oper.yang#L625"&gt;yang/Cisco-IOS-XE-bgp-oper.yang at master · YangModels/yang · GitHub&lt;/A&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Oct 2017 19:45:28 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/bgp-oper-path-error/m-p/3433426#M2503</guid>
      <dc:creator>abhirame</dc:creator>
      <dc:date>2017-10-24T19:45:28Z</dc:date>
    </item>
    <item>
      <title>Re: BGP Oper Path error</title>
      <link>https://community.cisco.com/t5/tools/bgp-oper-path-error/m-p/3433427#M2504</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would like to add that I needed the following modules installed as well:&lt;/P&gt;&lt;P&gt;pip install gitpython&lt;/P&gt;&lt;P&gt;pip install pyang&lt;/P&gt;&lt;P&gt;pip install rstr&lt;/P&gt;&lt;P&gt;pip install jinja2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also needed to add ".py" to the end of ./generate on line 4 of the solution&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I now have the following error:&lt;/P&gt;&lt;P&gt;[root@HTENNOCDDAT01 ydk-gen]# ./generate.py --bundle profiles/bundles/cisco-ios-xe_16_5_1.json&lt;/P&gt;&lt;P&gt;Traceback (most recent call last):&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "./generate.py", line 369, in &amp;lt;module&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; options.one_class_per_module).generate(options.bundle))&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "/root/ydk-gen/ydkgen/__init__.py", line 91, in generate&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return self._generate_bundle(description_file)&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "/root/ydk-gen/ydkgen/__init__.py", line 117, in _generate_bundle&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; packages = self._get_packages(curr_bundle.resolved_models_dir)&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "/root/ydk-gen/ydkgen/__init__.py", line 163, in _get_packages&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; packages = ApiModelBuilder(self.iskeyword, self.language).generate(modules)&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "/root/ydk-gen/ydkgen/builder/_api_model_builder.py", line 70, in generate&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; self._resolve_expanded_cross_references(package)&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "/root/ydk-gen/ydkgen/builder/_api_model_builder.py", line 147, in _resolve_expanded_cross_references&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; self._resolve_expanded_cross_references(owned_element)&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "/root/ydk-gen/ydkgen/builder/_api_model_builder.py", line 147, in _resolve_expanded_cross_references&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; self._resolve_expanded_cross_references(owned_element)&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "/root/ydk-gen/ydkgen/builder/_api_model_builder.py", line 147, in _resolve_expanded_cross_references&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; self._resolve_expanded_cross_references(owned_element)&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "/root/ydk-gen/ydkgen/builder/_api_model_builder.py", line 131, in _resolve_expanded_cross_references&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if not hasattr(identity_ref_type.i_type_spec.base.i_identity, 'i_class'):&lt;/P&gt;&lt;P&gt;AttributeError: 'NoneType' object has no attribute 'i_identity'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EDIT:&lt;/P&gt;&lt;P&gt;I resolved this issue from feedback in this thread - &lt;A href="https://community.cisco.com/thread/86368"&gt;Help needed debugging API compilation errors from ydk-gen&lt;/A&gt; by uninstalling pyang1.7 and installing pyang1.6&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Oct 2017 14:30:31 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/bgp-oper-path-error/m-p/3433427#M2504</guid>
      <dc:creator>crench92</dc:creator>
      <dc:date>2017-10-31T14:30:31Z</dc:date>
    </item>
    <item>
      <title>Re: BGP Oper Path error</title>
      <link>https://community.cisco.com/t5/tools/bgp-oper-path-error/m-p/3433428#M2505</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Glad&amp;nbsp; you got it to work.&amp;nbsp; Let me clarify that the README file has the instructions to intsall the requirements using:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_15094676037174827" jivemacro_uid="_15094676037174827" modifiedtitle="true"&gt;
&lt;P&gt;&lt;CODE style="font-family: SFMono-Regular, Consolas, 'Liberation Mono', Menlo, Courier, monospace; font-size: 13.6px; background: transparent;"&gt;$ pip install -r requirements.txt&lt;/CODE&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The requirements are documented at:&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/CiscoDevNet/ydk-gen/blob/master/requirements.txt" title="https://github.com/CiscoDevNet/ydk-gen/blob/master/requirements.txt"&gt;ydk-gen/requirements.txt at master · CiscoDevNet/ydk-gen · GitHub&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some of the packages you referenced are actually optional.&amp;nbsp; If you think the requirements file is missing packages, please let us know. Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Oct 2017 16:34:08 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/bgp-oper-path-error/m-p/3433428#M2505</guid>
      <dc:creator>saalvare</dc:creator>
      <dc:date>2017-10-31T16:34:08Z</dc:date>
    </item>
  </channel>
</rss>

