<?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: Pyang validation of ODL Yang schemas in Controllers</title>
    <link>https://community.cisco.com/t5/controllers/pyang-validation-of-odl-yang-schemas/m-p/3474568#M1290</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hmmm - not sure.&amp;nbsp;&amp;nbsp; I can do a "pyang -f tree opendaylight-inventory@2013-08-19.yang" in ODL's cache/schema directory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how did you download the modules?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 15 Aug 2016 16:02:42 GMT</pubDate>
    <dc:creator>giheron</dc:creator>
    <dc:date>2016-08-15T16:02:42Z</dc:date>
    <item>
      <title>Pyang validation of ODL Yang schemas</title>
      <link>https://community.cisco.com/t5/controllers/pyang-validation-of-odl-yang-schemas/m-p/3474567#M1289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Can anyone help me here?&amp;nbsp; I&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;'m seeing errors using pyang with the downloaded Yang schemas from ODL.&amp;nbsp; I'm running &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;distribution-karaf-0.4.2-Beryllium-SR2.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN&gt;I downloaded all the yang schema files from the server (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://localhost:8181/restconf/modules" rel="nofollow" target="_blank"&gt;http://localhost:8181/restconf/modules&lt;/A&gt;&lt;SPAN&gt;...)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I get errors on basically all of them.&amp;nbsp; For example,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;[gibson@rickenbacker yang]$ pyang -f tree opendaylight-inventory&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;opendaylight-inventory:1: error: module "yang-ext" not found in search path&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;opendaylight-inventory:1: error: module "ietf-inet-types" not found in search path&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;opendaylight-inventory:1: warning: imported module yang-ext not used&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;opendaylight-inventory:21 (at opendaylight-inventory:18): warning: "mandatory" statement for a key leaf is ignored&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;opendaylight-inventory:21: error: no module with the namespace "urn:opendaylight:yang:extension:yang-ext" is imported&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;opendaylight-inventory:21 (at opendaylight-inventory:21): warning: "mandatory" statement for a key leaf is ignored&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;opendaylight-inventory:27: error: no module with the namespace "urn:opendaylight:yang:extension:yang-ext" is imported&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;opendaylight-inventory:27: warning: explicit config statement is ignored&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;opendaylight-inventory:33: error: no module with the namespace "urn:opendaylight:yang:extension:yang-ext" is imported&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;opendaylight-inventory:33: warning: explicit config statement is ignored&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;opendaylight-inventory:39: error: no module with the namespace "urn:opendaylight:yang:extension:yang-ext" is imported&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;opendaylight-inventory:39: warning: explicit config statement is ignored&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;opendaylight-inventory:45: error: no module with the namespace "urn:opendaylight:yang:extension:yang-ext" is imported&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;opendaylight-inventory:45: warning: explicit config statement is ignored&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;module: opendaylight-inventory&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp; x--rw nodes!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; +--rw node* [id]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; +--rw id&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; node-id&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; +--rw node-connector* [id]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&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; +--rw id&amp;nbsp;&amp;nbsp;&amp;nbsp; node-connector-id&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;notifications:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp; x---n node-removed&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp; |&amp;nbsp; +--ro node-ref?&amp;nbsp;&amp;nbsp; node-ref&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp; x---n node-connector-removed&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp; |&amp;nbsp; +--ro node-connector-ref?&amp;nbsp;&amp;nbsp; node-connector-ref&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp; x---n node-updated&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp; |&amp;nbsp; +--ro node-ref?&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; node-ref&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp; |&amp;nbsp; +--rw id?&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; node-id&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp; |&amp;nbsp; +--rw node-connector* [id]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; +--rw id&amp;nbsp;&amp;nbsp;&amp;nbsp; node-connector-id&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp; x---n node-connector-updated&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; +--ro node-connector-ref?&amp;nbsp;&amp;nbsp; node-connector-ref&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; +--rw id?&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; node-connector-id&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;However, "yang-ext" schema file is in the same directory with all the other files.&amp;nbsp; I see similar errors running other files.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Anyone have a suggestion?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Aug 2016 00:39:28 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/pyang-validation-of-odl-yang-schemas/m-p/3474567#M1289</guid>
      <dc:creator>brfoster</dc:creator>
      <dc:date>2016-08-08T00:39:28Z</dc:date>
    </item>
    <item>
      <title>Re: Pyang validation of ODL Yang schemas</title>
      <link>https://community.cisco.com/t5/controllers/pyang-validation-of-odl-yang-schemas/m-p/3474568#M1290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hmmm - not sure.&amp;nbsp;&amp;nbsp; I can do a "pyang -f tree opendaylight-inventory@2013-08-19.yang" in ODL's cache/schema directory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how did you download the modules?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Aug 2016 16:02:42 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/pyang-validation-of-odl-yang-schemas/m-p/3474568#M1290</guid>
      <dc:creator>giheron</dc:creator>
      <dc:date>2016-08-15T16:02:42Z</dc:date>
    </item>
    <item>
      <title>Re: Pyang validation of ODL Yang schemas</title>
      <link>https://community.cisco.com/t5/controllers/pyang-validation-of-odl-yang-schemas/m-p/3474569#M1291</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm just downloading from the server with the URL for the schema like...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://192.168.5.102:8181/restconf/modules/module/opendaylight-inventory/2013-08-19/schema" title="http://192.168.5.102:8181/restconf/modules/module/opendaylight-inventory/2013-08-19/schema"&gt;http://192.168.5.102:8181/restconf/modules/module/opendaylight-inventory/2013-08-19/schema&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can do it with the browser or wget or curl and I get the same result shown above.&amp;nbsp; Do the files get corrupted with that method?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Aug 2016 17:02:13 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/pyang-validation-of-odl-yang-schemas/m-p/3474569#M1291</guid>
      <dc:creator>brfoster</dc:creator>
      <dc:date>2016-08-15T17:02:13Z</dc:date>
    </item>
    <item>
      <title>Re: Pyang validation of ODL Yang schemas</title>
      <link>https://community.cisco.com/t5/controllers/pyang-validation-of-odl-yang-schemas/m-p/3474570#M1292</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ah ok.&amp;nbsp; So if you do that then the schemas are downloaded in YIN, not YANG (I'm not sure why).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so you need to convert each schema file using e.g. "pyang -f yang schema &amp;gt; yang-ext.yang"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let me know if that works &lt;IMG src="https://community.cisco.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Aug 2016 20:03:05 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/pyang-validation-of-odl-yang-schemas/m-p/3474570#M1292</guid>
      <dc:creator>giheron</dc:creator>
      <dc:date>2016-08-16T20:03:05Z</dc:date>
    </item>
  </channel>
</rss>

