<?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 issue with retrieving of schema in Tools</title>
    <link>https://community.cisco.com/t5/tools/issue-with-retrieving-of-schema/m-p/3544980#M2293</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;Hi &lt;BR /&gt;I could generate bundle using ydk-gen 3rd party vendor yang models without facing any obvious problems.&lt;BR /&gt;Then I imported it, made small testing code(attached) and faced and issue.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;As it seem from debug (attached), crud&amp;nbsp; tries to download yang-model in order to validate payload against it. It makes several iterations and then returns error &lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;ydk.errors.YInvalidArgumentError:&amp;nbsp; Path is invalid: configuration:configuration&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;However pasting of below-listed rpc over ssh returned yang model&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG style="font-size: 8pt;"&gt;ssh 192.168.2.11 -p 830 -l ali -s netconf&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG style="font-size: 8pt;"&gt;Password:&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG style=": ; font-size: 8pt;"&gt;&lt;EM&gt;&amp;lt;rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1"&amp;gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;EM style="font-size: 8pt;"&gt;&lt;STRONG&gt;&amp;nbsp; &amp;lt;get-schema&amp;gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;EM style="font-size: 8pt;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;module&amp;gt;configuration&amp;lt;/module&amp;gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;EM style="font-size: 8pt;"&gt;&lt;STRONG&gt;&amp;nbsp; &amp;lt;/get-schema&amp;gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM&gt;&amp;lt;/rpc&amp;gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Q: Could you please explain how crud composes rpc to fetch schemes (it seems it tries to put "configuration:confguration" between "module" tags instead of "configuration"). Is it possible to influence on this logic somehow or disable this sort of validation ?&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Thanks a lot !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 May 2018 12:55:49 GMT</pubDate>
    <dc:creator>aligang1988</dc:creator>
    <dc:date>2018-05-17T12:55:49Z</dc:date>
    <item>
      <title>issue with retrieving of schema</title>
      <link>https://community.cisco.com/t5/tools/issue-with-retrieving-of-schema/m-p/3544980#M2293</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;Hi &lt;BR /&gt;I could generate bundle using ydk-gen 3rd party vendor yang models without facing any obvious problems.&lt;BR /&gt;Then I imported it, made small testing code(attached) and faced and issue.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;As it seem from debug (attached), crud&amp;nbsp; tries to download yang-model in order to validate payload against it. It makes several iterations and then returns error &lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;ydk.errors.YInvalidArgumentError:&amp;nbsp; Path is invalid: configuration:configuration&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;However pasting of below-listed rpc over ssh returned yang model&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG style="font-size: 8pt;"&gt;ssh 192.168.2.11 -p 830 -l ali -s netconf&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG style="font-size: 8pt;"&gt;Password:&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG style=": ; font-size: 8pt;"&gt;&lt;EM&gt;&amp;lt;rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1"&amp;gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;EM style="font-size: 8pt;"&gt;&lt;STRONG&gt;&amp;nbsp; &amp;lt;get-schema&amp;gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;EM style="font-size: 8pt;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;module&amp;gt;configuration&amp;lt;/module&amp;gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;EM style="font-size: 8pt;"&gt;&lt;STRONG&gt;&amp;nbsp; &amp;lt;/get-schema&amp;gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM&gt;&amp;lt;/rpc&amp;gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Q: Could you please explain how crud composes rpc to fetch schemes (it seems it tries to put "configuration:confguration" between "module" tags instead of "configuration"). Is it possible to influence on this logic somehow or disable this sort of validation ?&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Thanks a lot !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 May 2018 12:55:49 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/issue-with-retrieving-of-schema/m-p/3544980#M2293</guid>
      <dc:creator>aligang1988</dc:creator>
      <dc:date>2018-05-17T12:55:49Z</dc:date>
    </item>
    <item>
      <title>Re: issue with retrieving of schema</title>
      <link>https://community.cisco.com/t5/tools/issue-with-retrieving-of-schema/m-p/3544981#M2294</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It appears that the device does not support the get-schema RPC. Can you please copy all the device yang models to the below directory:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/home/alex-limonov/.ydk/192.168.2.11_830&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The other option is to pass in a different folder location of the yang models in the repo parameter of NetconfServiceProvider: &lt;A href="http://ydk.cisco.com/py/docs/api/providers/netconf_provider.html#ydk.providers.NetconfServiceProvider" title="http://ydk.cisco.com/py/docs/api/providers/netconf_provider.html#ydk.providers.NetconfServiceProvider"&gt;http://ydk.cisco.com/py/docs/api/providers/netconf_provider.html#ydk.providers.NetconfServiceProvider&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2018 17:06:31 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/issue-with-retrieving-of-schema/m-p/3544981#M2294</guid>
      <dc:creator>abhirame</dc:creator>
      <dc:date>2018-05-18T17:06:31Z</dc:date>
    </item>
    <item>
      <title>Re: issue with retrieving of schema</title>
      <link>https://community.cisco.com/t5/tools/issue-with-retrieving-of-schema/m-p/3544982#M2295</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for you responce&lt;BR /&gt;Actually I could send get-schema RPC over SSH (simple openssh connection) !&lt;BR /&gt;i used such command :&lt;BR /&gt;&lt;STRONG style="font-size: 8pt;"&gt;cat get-schema_request.xml | ssh 192.168.2.11 -p 830&amp;nbsp; -l ali -s netconf&amp;nbsp; &amp;gt;&amp;gt; get-schema_responce.xml &lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;(respective&amp;nbsp; .xml files are in attachement)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;That makes me think that get-schema RPC was processed normally by device.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is little bit strange:&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;When test-code is executed&amp;nbsp; there is&amp;nbsp; no get-schema-rpc message in debug, only&amp;nbsp; comments, that it tries to fetch schema from device (however hello messages bodies do present and another ydk specific debugs do present).&lt;SPAN style="font-size: 13.3333px;"&gt;Libssh and libnetconf were rebuilt to provide logging.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Is there option to check that get-schema rpc was actually sent ? Because right now it is not really obvious&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;From the other hand, manual specifying of repo with .yang files breaks a knot, but I would like to understand why my code can not fetch and resolve yang models directly from device &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 19 May 2018 20:30:23 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/issue-with-retrieving-of-schema/m-p/3544982#M2295</guid>
      <dc:creator>aligang1988</dc:creator>
      <dc:date>2018-05-19T20:30:23Z</dc:date>
    </item>
    <item>
      <title>Re: issue with retrieving of schema</title>
      <link>https://community.cisco.com/t5/tools/issue-with-retrieving-of-schema/m-p/3544983#M2296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Small update:&lt;/P&gt;&lt;P&gt;I&amp;nbsp; have slightly modified test code and ran it over XR platform.&lt;BR /&gt;Below is displayed respective debug and it does content get-schema-rpc body&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Connected to 192.168.2.12 on port 22 using ssh with timeout of -1&lt;/LI&gt;&lt;LI&gt;Executing CRUD update operation on [Cisco-IOS-XR-ifmgr-cfg:interface-configurations]&lt;/LI&gt;&lt;LI&gt;Getting new modules for ydk:update&lt;/LI&gt;&lt;LI&gt;Getting new modules for ydk:update&lt;/LI&gt;&lt;LI&gt;Loading Module 'ydk' Revision ''&lt;/LI&gt;&lt;LI&gt;Cache hit Module 'ydk' Revision ''&lt;/LI&gt;&lt;LI&gt;Getting new modules for Cisco-IOS-XR-ifmgr-cfg:interface-configurations&lt;/LI&gt;&lt;LI&gt;Getting new modules for Cisco-IOS-XR-ifmgr-cfg:interface-configurations&lt;/LI&gt;&lt;LI&gt;Loading Module 'Cisco-IOS-XR-ifmgr-cfg' Revision ''&lt;/LI&gt;&lt;LI&gt;Getting module Cisco-IOS-XR-ifmgr-cfg submodule none&lt;/LI&gt;&lt;LI&gt;Looking for file in folder: /home/alex-limonov/.ydk/192.168.2.12_22&lt;/LI&gt;&lt;LI&gt;Opening file /home/alex-limonov/.ydk/192.168.2.12_22/Cisco-IOS-XR-ifmgr-cfg.yang&lt;/LI&gt;&lt;LI&gt;Path found with rev: false. Path without rev: false&lt;/LI&gt;&lt;LI&gt;Getting module using get-schema Cisco-IOS-XR-ifmgr-cfg&lt;/LI&gt;&lt;LI&gt;Trace: Missing message-id in rpc.&lt;/LI&gt;&lt;LI&gt;Netconf SSH Client: sending rpc&lt;/LI&gt;&lt;LI&gt;Trace: Writing message (session 2665454158): &amp;lt;?xml version="1.0"?&amp;gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;&amp;lt;rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1"&amp;gt;&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;&amp;nbsp; &amp;lt;get-schema xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring"&amp;gt;&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;identifier&amp;gt;Cisco-IOS-XR-ifmgr-cfg&amp;lt;/identifier&amp;gt;&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;format&amp;gt;yang&amp;lt;/format&amp;gt;&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;&amp;nbsp; &amp;lt;/get-schema&amp;gt;&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;&amp;lt;/rpc&amp;gt;&lt;/STRONG&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;This is extract from initial debug, it looks pretty similar to previous one until string 15. It says "&lt;SPAN style="font-size: 13.3333px;"&gt;Cannot find model with module_name: configuration module_rev&lt;/SPAN&gt;"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Connected to &lt;SPAN style="color: #b5cea8;"&gt;192.168.2.11&lt;/SPAN&gt; on &lt;SPAN style="color: #569cd6;"&gt;port&lt;/SPAN&gt; 830 using ssh with timeout of -1&lt;/LI&gt;&lt;LI&gt;Executing CRUD &lt;SPAN style="font-size: 10pt; color: #569cd6;"&gt;create&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; operation on [configuration:configuration]&lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;Getting new modules for ydk:&lt;SPAN style="font-size: 10pt; color: #569cd6;"&gt;create&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;Getting new modules for ydk:&lt;SPAN style="font-size: 10pt; color: #569cd6;"&gt;create&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;Loading Module 'ydk' Revision ''&lt;/LI&gt;&lt;LI&gt;Cache hit Module 'ydk' Revision ''&lt;/LI&gt;&lt;LI&gt;Getting new modules for configuration:configuration&lt;/LI&gt;&lt;LI&gt;Getting new modules for configuration:configuration&lt;/LI&gt;&lt;LI&gt;Loading Module 'configuration' Revision ''&lt;/LI&gt;&lt;LI&gt;Getting module configuration submodule none&lt;/LI&gt;&lt;LI&gt;Looking for file in folder: /home/alex-limonov/.ydk/&lt;SPAN style="font-size: 10pt; color: #b5cea8;"&gt;192.168.2.11&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;_830&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;Opening file /home/alex-limonov/.ydk/&lt;SPAN style="font-size: 10pt; color: #b5cea8;"&gt;192.168.2.11&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;_830/configuration.yang&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;Path found with rev: false. Path without rev: false&lt;/LI&gt;&lt;LI&gt;Getting module using get-schema configuration&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Cannot find model with module_name: configuration module_rev&lt;/STRONG&gt;: &lt;/LI&gt;&lt;LI&gt;Debug: Searching for "configuration" in /home/alex-limonov/.ydk/&lt;SPAN style="font-size: 10pt; color: #b5cea8;"&gt;192.168.2.11&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;_830.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;Debug: Searching for "configuration" in /home/alex-limonov/ydk/trash.&lt;/LI&gt;&lt;LI&gt;Data is invalid according to the yang model. Error details: Data model "configuration" not found.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;BR /&gt;Q: Could you please explain, what actually it tries to check here ?&lt;/P&gt;&lt;P&gt;Thanks !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 19 May 2018 21:06:55 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/issue-with-retrieving-of-schema/m-p/3544983#M2296</guid>
      <dc:creator>aligang1988</dc:creator>
      <dc:date>2018-05-19T21:06:55Z</dc:date>
    </item>
    <item>
      <title>Re: issue with retrieving of schema</title>
      <link>https://community.cisco.com/t5/tools/issue-with-retrieving-of-schema/m-p/3544984#M2297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry. It looks like though the device supports get-schema, it does not advertise the support for the corresponding model "ietf-netconf-monitoring" in the capabilities in the hello message. This needs to be fixed on the device side&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 May 2018 16:52:26 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/issue-with-retrieving-of-schema/m-p/3544984#M2297</guid>
      <dc:creator>abhirame</dc:creator>
      <dc:date>2018-05-21T16:52:26Z</dc:date>
    </item>
  </channel>
</rss>

