<?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 get-schema in Tools</title>
    <link>https://community.cisco.com/t5/tools/get-schema/m-p/3596493#M2796</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I try to use Python inetconf API to get schema of open device box.&lt;/P&gt;&lt;P&gt;I keep getting empty data as return.&amp;nbsp; The messages exchanged with open box device as below&lt;/P&gt;&lt;P&gt;I think open device doesn't like &lt;SPAN style="font-size: 13.3333px;"&gt;xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring"/&amp;gt;, extra "/&amp;gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;How do I get around this issue ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Executing CRUD read operation&lt;/P&gt;&lt;P&gt;=============Generating payload to send to device=============&lt;/P&gt;&lt;P&gt;&amp;lt;rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"&amp;gt;&amp;lt;get xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;filter&amp;gt;&amp;lt;get-schema xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring"/&amp;gt;&amp;lt;/filter&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/get&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/rpc&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=============Reply payload received from device=============&lt;/P&gt;&lt;P&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="2"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;data/&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/rpc-reply&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 01 Oct 2017 16:40:34 GMT</pubDate>
    <dc:creator>ttdo</dc:creator>
    <dc:date>2017-10-01T16:40:34Z</dc:date>
    <item>
      <title>get-schema</title>
      <link>https://community.cisco.com/t5/tools/get-schema/m-p/3596493#M2796</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I try to use Python inetconf API to get schema of open device box.&lt;/P&gt;&lt;P&gt;I keep getting empty data as return.&amp;nbsp; The messages exchanged with open box device as below&lt;/P&gt;&lt;P&gt;I think open device doesn't like &lt;SPAN style="font-size: 13.3333px;"&gt;xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring"/&amp;gt;, extra "/&amp;gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;How do I get around this issue ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Executing CRUD read operation&lt;/P&gt;&lt;P&gt;=============Generating payload to send to device=============&lt;/P&gt;&lt;P&gt;&amp;lt;rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"&amp;gt;&amp;lt;get xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;filter&amp;gt;&amp;lt;get-schema xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring"/&amp;gt;&amp;lt;/filter&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/get&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/rpc&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=============Reply payload received from device=============&lt;/P&gt;&lt;P&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="2"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;data/&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/rpc-reply&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 01 Oct 2017 16:40:34 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/get-schema/m-p/3596493#M2796</guid>
      <dc:creator>ttdo</dc:creator>
      <dc:date>2017-10-01T16:40:34Z</dc:date>
    </item>
    <item>
      <title>Re: get-schema</title>
      <link>https://community.cisco.com/t5/tools/get-schema/m-p/3596494#M2797</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thang,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The RPC you have sent is malformed. The get-schema RPC is its own RPC and should not be inside a get. Please see:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="loading" href="https://tools.ietf.org/html/rfc6022#section-3.1" style="font-size: 10pt;"&gt;https://tools.ietf.org/html/rfc6022#section-3.1&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...and the subsequent YANG model identifying that the module name is a mandatory parameter. The get was interpreting this as a request for something in the data tree that didn’t exist, and thus returned no data, a completely valid response per the Netconf/Yang RFCs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Einar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 01 Oct 2017 19:14:20 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/get-schema/m-p/3596494#M2797</guid>
      <dc:creator>einarnn</dc:creator>
      <dc:date>2017-10-01T19:14:20Z</dc:date>
    </item>
    <item>
      <title>Re: get-schema</title>
      <link>https://community.cisco.com/t5/tools/get-schema/m-p/3596495#M2798</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Einarl&lt;/P&gt;&lt;P style="color: #26282a; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 13px;"&gt;How do I feed the input to YDK Python RPC class ?&lt;/P&gt;&lt;P style="color: #26282a; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 13px;"&gt;&lt;/P&gt;&lt;P style="color: #26282a; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 13px;"&gt;Thanks&lt;/P&gt;&lt;P style="color: #26282a; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 13px;"&gt;-Thang&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Oct 2017 00:17:21 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/get-schema/m-p/3596495#M2798</guid>
      <dc:creator>ttdo</dc:creator>
      <dc:date>2017-10-02T00:17:21Z</dc:date>
    </item>
    <item>
      <title>Re: get-schema</title>
      <link>https://community.cisco.com/t5/tools/get-schema/m-p/3596496#M2799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please take a look at the documentation here:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://ydk.cisco.com/py/docs/gen_doc_8a24df942f18e3e8d10f942723e7ccd22489d19e.html" title="http://ydk.cisco.com/py/docs/gen_doc_8a24df942f18e3e8d10f942723e7ccd22489d19e.html"&gt;http://ydk.cisco.com/py/docs/gen_doc_8a24df942f18e3e8d10f942723e7ccd22489d19e.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you will need to pass in an instance of the “Input” class referred to on that page. You can click through to that class definition and find out what parameters need populated. There is also a code sample here:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/CiscoDevNet/ydk-py-samples/blob/master/samples/basic/executor/models/ietf/ietf-netconf-monitoring/nc-execute-ietf-netconf-monitoring-20-ydk.py" title="https://github.com/CiscoDevNet/ydk-py-samples/blob/master/samples/basic/executor/models/ietf/ietf-netconf-monitoring/nc-execute-ietf-netconf-monitoring-20-ydk.py"&gt;ydk-py-samples/nc-execute-ietf-netconf-monitoring-20-ydk.py at master · CiscoDevNet/ydk-py-samples · GitHub&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Einar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Oct 2017 07:35:42 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/get-schema/m-p/3596496#M2799</guid>
      <dc:creator>einarnn</dc:creator>
      <dc:date>2017-10-02T07:35:42Z</dc:date>
    </item>
  </channel>
</rss>

