<?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: Regarding platform-specific yang model in Tools</title>
    <link>https://community.cisco.com/t5/tools/regarding-platform-specific-yang-model/m-p/4103710#M1935</link>
    <description>&lt;P&gt;In any case when your set of models is different from those offered in www.&lt;EM&gt;Pipy.org&lt;/EM&gt; repository, you need to build your own model package. The package generation process is described &lt;A href="https://github.com/ygorelik/ydk-gen/tree/0.8.4.post1#build-model-bundle-profile" target="_self"&gt;here&lt;/A&gt;. The most important part of the process is building profile of the bundle. The most resent documentation on profiles is presented &lt;A href="https://github.com/ygorelik/ydk-gen/blob/0.8.4.post1/profiles/README.md" target="_self"&gt;here&lt;/A&gt;. You also can find multiple examples of profiles under path: &lt;EM&gt;ydk-gen/profiles/bundles&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;Please note that for your purpose you might not need all the XR related yang files. You might choose very limited but sufficient set of YANG files, which is needed for your application. To make sure that set of models is complete in your model repository (directory), you need to run command '&lt;EM&gt;pyang *.yang'&lt;/EM&gt; in that directory; if the set is complete the pyang will not produce any errors. Important to note that YDK is working only with YANG version 1.0 and pyang version 1.6.&lt;/P&gt;&lt;P&gt;Please let me know if you are facing issues and I will try to help you.&lt;/P&gt;</description>
    <pubDate>Mon, 15 Jun 2020 20:49:43 GMT</pubDate>
    <dc:creator>yangorelik</dc:creator>
    <dc:date>2020-06-15T20:49:43Z</dc:date>
    <item>
      <title>Regarding platform-specific yang model</title>
      <link>https://community.cisco.com/t5/tools/regarding-platform-specific-yang-model/m-p/4103222#M1934</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can see that in the link below there are some platform-specific yang models such as &lt;STRONG&gt;&lt;SPAN style="caret-color: #000000; color: #000000; font-family: -apple-system, 'Segoe UI', 'Segoe UI Emoji', sans-serif, Meiryo; font-size: 14px; font-style: normal; font-variant-caps: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -moz-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration: none; display: inline !important; float: none;"&gt;Cisco-IOS-XR-fretta-dnx-lpts-oper.yang, Cisco-IOS-XR-spitfire-lpts-oper.yang, Cisco-IOS-XR-asr9k-lpts-oper.yang&lt;BR /&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="caret-color: #000000; color: #000000; font-family: -apple-system, 'Segoe UI', 'Segoe UI Emoji', sans-serif, Meiryo; font-size: 14px; font-style: normal; font-variant-caps: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -moz-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration: none; display: inline !important; float: none;"&gt;&lt;A href="https://wwwin-opengrok.cisco.com/xr-dev/search?full=PlatformLPTSPIfib&amp;amp;defs=&amp;amp;refs=&amp;amp;path=&amp;amp;type=&amp;amp;si=ful" rel="nofollow noopener noreferrer" target="_blank"&gt;https://wwwin-opengrok.cisco.com/xr-dev/search?full=PlatformLPTSPIfib&amp;amp;defs=&amp;amp;refs=&amp;amp;path=&amp;amp;type=&amp;amp;si=ful&lt;/A&gt;...&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Which is not present in &lt;A href="http://ydk.cisco.com/py/docs/" rel="nofollow noopener noreferrer" target="_blank"&gt;http://ydk.cisco.com/py/docs/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Looks like they are not compiled to ydk lib since importing them throws an error:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; import ydk.models.cisco_ios_xr.&lt;STRONG&gt;Cisco_IOS_XR_fretta_dnx_lpts_oper&lt;/STRONG&gt; &lt;BR /&gt;Traceback (most recent call last):&lt;BR /&gt;File "&amp;lt;stdin&amp;gt;", line 1, in &amp;lt;module&amp;gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;ImportError: No module named 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_fretta_dnx_lpts_oper'&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;FONT color="#000000"&gt;&amp;gt;&amp;gt;&amp;gt; import ydk.models.cisco_ios_xr.&lt;STRONG&gt;Cisco_IOS_XR_spitfire_lpts_oper &lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000000"&gt;Traceback (most recent call last):&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000000"&gt;File "&amp;lt;stdin&amp;gt;", line 1, in &amp;lt;module&amp;gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;STRONG&gt;ImportError: No module named 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_spitfire_lpts_oper'&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;However, I am able to import this: CISCO_IOS_XR_asr9k_lpts_oper&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;&amp;gt;&amp;gt;&amp;gt; import ydk.models.cisco_ios_xr.Cisco_IOS_XR_asr9k_lpts_oper&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any idea of how I can import and use &lt;STRONG&gt;&lt;SPAN style="caret-color: #000000; color: #000000; font-family: -apple-system, 'Segoe UI', 'Segoe UI Emoji', sans-serif, Meiryo; font-size: 14px; font-style: normal; font-variant-caps: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -moz-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration: none; display: inline !important; float: none;"&gt;Cisco-IOS-XR-fretta-dnx-lpts-oper.yang, Cisco-IOS-XR-spitfire-lpts-oper.yang&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jun 2020 10:42:10 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/regarding-platform-specific-yang-model/m-p/4103222#M1934</guid>
      <dc:creator>anibhara</dc:creator>
      <dc:date>2020-06-15T10:42:10Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding platform-specific yang model</title>
      <link>https://community.cisco.com/t5/tools/regarding-platform-specific-yang-model/m-p/4103710#M1935</link>
      <description>&lt;P&gt;In any case when your set of models is different from those offered in www.&lt;EM&gt;Pipy.org&lt;/EM&gt; repository, you need to build your own model package. The package generation process is described &lt;A href="https://github.com/ygorelik/ydk-gen/tree/0.8.4.post1#build-model-bundle-profile" target="_self"&gt;here&lt;/A&gt;. The most important part of the process is building profile of the bundle. The most resent documentation on profiles is presented &lt;A href="https://github.com/ygorelik/ydk-gen/blob/0.8.4.post1/profiles/README.md" target="_self"&gt;here&lt;/A&gt;. You also can find multiple examples of profiles under path: &lt;EM&gt;ydk-gen/profiles/bundles&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;Please note that for your purpose you might not need all the XR related yang files. You might choose very limited but sufficient set of YANG files, which is needed for your application. To make sure that set of models is complete in your model repository (directory), you need to run command '&lt;EM&gt;pyang *.yang'&lt;/EM&gt; in that directory; if the set is complete the pyang will not produce any errors. Important to note that YDK is working only with YANG version 1.0 and pyang version 1.6.&lt;/P&gt;&lt;P&gt;Please let me know if you are facing issues and I will try to help you.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jun 2020 20:49:43 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/regarding-platform-specific-yang-model/m-p/4103710#M1935</guid>
      <dc:creator>yangorelik</dc:creator>
      <dc:date>2020-06-15T20:49:43Z</dc:date>
    </item>
  </channel>
</rss>

