<?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: Module Error with pyang sample-xml-skeleton and IOS-XE YANG models in Tools</title>
    <link>https://community.cisco.com/t5/tools/module-error-with-pyang-sample-xml-skeleton-and-ios-xe-yang/m-p/4710381#M1042</link>
    <description>&lt;P&gt;Thank you for pointing me into the right direction. I was able to get the required XML "template" with pyang using the following command:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;pyang -f sample-xml-skeleton Cisco-IOS-XE-native.yang Cisco-IOS-XE-ntp.yang --sample-xml-skeleton-defaults --sample-xml-skeleton-path=/native/ntp&lt;/LI-CODE&gt;
&lt;P&gt;I learned that the file names of all required models must be passed to pyang for it to work. The "tree" output with a single model might work; however, this model might lack the surrounding element structure. For the NTP servers to be set, the "native" tags must surround the "ntp" element.&lt;/P&gt;</description>
    <pubDate>Wed, 26 Oct 2022 07:11:26 GMT</pubDate>
    <dc:creator>DrSchw0b</dc:creator>
    <dc:date>2022-10-26T07:11:26Z</dc:date>
    <item>
      <title>Module Error with pyang sample-xml-skeleton and IOS-XE YANG models</title>
      <link>https://community.cisco.com/t5/tools/module-error-with-pyang-sample-xml-skeleton-and-ios-xe-yang/m-p/4709401#M1040</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am new to YANG/Netconf. Apologies in advance if there is an obvious answer to my question.&lt;/P&gt;
&lt;P&gt;I am using the Yang models of the &lt;A href="https://github.com/YangModels/yang" target="_blank"&gt;https://github.com/YangModels/yang&lt;/A&gt; repositories, Python 3.9.2 and pyang 2.5.3 for the following:&lt;/P&gt;
&lt;P&gt;I am trying to get a feeling for the YANG models in combination with Netconf. I came across pyang with the “sample-xml-skeleton” format. As a beginner this looks to me as approach to get the XML template, I might use to correctly format the Netconf payload. In fact, I succeed to do so with the IETF interfaces YANG model:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;pyang -t edit -f sample-xml-skeleton yang/standard/ietf/RFC/ietf-interfaces.yang --sample-xml-skeleton-defaults
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;After that I tried to get a “template” for IOS-XE ntp servers:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;$ pyang -f sample-xml-skeleton yang/vendor/cisco/xe/1781/Cisco-IOS-XE-ntp.yang --sample-xml-skeleton-defaults
yang/vendor/cisco/xe/1781/Cisco-IOS-XE-ntp.yang:5: error: module "cisco-semver" not found in search path
yang/vendor/cisco/xe/1781/Cisco-IOS-XE-ntp.yang:11: error: module "Cisco-IOS-XE-types" not found in search path
yang/vendor/cisco/xe/1781/Cisco-IOS-XE-ntp.yang:14: error: module "Cisco-IOS-XE-native" not found in search path
yang/vendor/cisco/xe/1781/Cisco-IOS-XE-ntp.yang:17: error: module "Cisco-IOS-XE-interface-common" not found in search path
sample-xml-skeleton plugin needs a valid module
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As you can see, I got an error message.&lt;/P&gt;
&lt;P&gt;I also tried running the command in the respective YANG Model folder or by adding the path parameter to the command. Both generated the (more or less) same warning messages:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;cd yang/vendor/cisco/xe/1781/
pyang -f sample-xml-skeleton Cisco-IOS-XE-ntp.yang --sample-xml-skeleton-defaults
[output omitted]

==============================
pyang -t edit -f sample-xml-skeleton -p yang/vendor/cisco/xe/1781/ yang/vendor/cisco/xe/1781/Cisco-IOS-XE-ntp.yang --sample-xml-skeleton-defaults
yang/vendor/cisco/xe/1781/Cisco-IOS-XE-native.yang:2592 (at yang/vendor/cisco/xe/1781/Cisco-IOS-XE-interfaces.yang:636): warning: node "Cisco-IOS-XE-native::native" is not found in module "Cisco-IOS-XE-interfaces"
yang/vendor/cisco/xe/1781/Cisco-IOS-XE-native.yang:2592 (at yang/vendor/cisco/xe/1781/Cisco-IOS-XE-interfaces.yang:1620): warning: node "Cisco-IOS-XE-native::native" is not found in module "Cisco-IOS-XE-interfaces"
yang/vendor/cisco/xe/1781/Cisco-IOS-XE-native.yang:2592 (at yang/vendor/cisco/xe/1781/Cisco-IOS-XE-interfaces.yang:1623): warning: node "Cisco-IOS-XE-native::native" is not found in module "Cisco-IOS-XE-interfaces"
yang/vendor/cisco/xe/1781/Cisco-IOS-XE-native.yang:2592 (at yang/vendor/cisco/xe/1781/Cisco-IOS-XE-interfaces.yang:1635): warning: node "Cisco-IOS-XE-native::native" is not found in module "Cisco-IOS-XE-interfaces"
yang/vendor/cisco/xe/1781/Cisco-IOS-XE-native.yang:2592 (at yang/vendor/cisco/xe/1781/Cisco-IOS-XE-interfaces.yang:1782): warning: node "Cisco-IOS-XE-native::native" is not found in module "Cisco-IOS-XE-interfaces"
yang/vendor/cisco/xe/1781/Cisco-IOS-XE-native.yang:2592 (at yang/vendor/cisco/xe/1781/Cisco-IOS-XE-interfaces.yang:1785): warning: node "Cisco-IOS-XE-native::native" is not found in module "Cisco-IOS-XE-interfaces"
yang/vendor/cisco/xe/1781/Cisco-IOS-XE-native.yang:2592 (at yang/vendor/cisco/xe/1781/Cisco-IOS-XE-interfaces.yang:1962): warning: node "Cisco-IOS-XE-native::native" is not found in module "Cisco-IOS-XE-interfaces"
yang/vendor/cisco/xe/1781/Cisco-IOS-XE-native.yang:2592 (at yang/vendor/cisco/xe/1781/Cisco-IOS-XE-interfaces.yang:2420): warning: node "Cisco-IOS-XE-native::native" is not found in module "Cisco-IOS-XE-interfaces"
yang/vendor/cisco/xe/1781/Cisco-IOS-XE-native.yang:2592 (at yang/vendor/cisco/xe/1781/Cisco-IOS-XE-interfaces.yang:3944): warning: node "Cisco-IOS-XE-native::native" is not found in module "Cisco-IOS-XE-interfaces"
yang/vendor/cisco/xe/1781/Cisco-IOS-XE-native.yang:2592 (at yang/vendor/cisco/xe/1781/Cisco-IOS-XE-interfaces.yang:4031): warning: node "Cisco-IOS-XE-native::native" is not found in module "Cisco-IOS-XE-interfaces"
yang/vendor/cisco/xe/1781/Cisco-IOS-XE-native.yang:2592 (at yang/vendor/cisco/xe/1781/Cisco-IOS-XE-interfaces.yang:4155): warning: node "Cisco-IOS-XE-native::native" is not found in module "Cisco-IOS-XE-interfaces"
yang/vendor/cisco/xe/1781/Cisco-IOS-XE-native.yang:2592 (at yang/vendor/cisco/xe/1781/Cisco-IOS-XE-interfaces.yang:4449): warning: node "Cisco-IOS-XE-native::native" is not found in module "Cisco-IOS-XE-interfaces"
yang/vendor/cisco/xe/1781/Cisco-IOS-XE-native.yang:2592 (at yang/vendor/cisco/xe/1781/Cisco-IOS-XE-interfaces.yang:5556): warning: node "Cisco-IOS-XE-native::native" is not found in module "Cisco-IOS-XE-interfaces"
yang/vendor/cisco/xe/1781/Cisco-IOS-XE-native.yang:2592 (at yang/vendor/cisco/xe/1781/Cisco-IOS-XE-interfaces.yang:5559): warning: node "Cisco-IOS-XE-native::native" is not found in module "Cisco-IOS-XE-interfaces"
yang/vendor/cisco/xe/1781/Cisco-IOS-XE-native.yang:2592 (at yang/vendor/cisco/xe/1781/Cisco-IOS-XE-interfaces.yang:5572): warning: node "Cisco-IOS-XE-native::native" is not found in module "Cisco-IOS-XE-interfaces"
yang/vendor/cisco/xe/1781/Cisco-IOS-XE-native.yang:2592 (at yang/vendor/cisco/xe/1781/Cisco-IOS-XE-interfaces.yang:5751): warning: node "Cisco-IOS-XE-native::native" is not found in module "Cisco-IOS-XE-interfaces"
yang/vendor/cisco/xe/1781/Cisco-IOS-XE-native.yang:2592 (at yang/vendor/cisco/xe/1781/Cisco-IOS-XE-interfaces.yang:5754): warning: node "Cisco-IOS-XE-native::native" is not found in module "Cisco-IOS-XE-interfaces"
yang/vendor/cisco/xe/1781/Cisco-IOS-XE-native.yang:2592 (at yang/vendor/cisco/xe/1781/Cisco-IOS-XE-interfaces.yang:5941): warning: node "Cisco-IOS-XE-native::native" is not found in module "Cisco-IOS-XE-interfaces"
yang/vendor/cisco/xe/1781/Cisco-IOS-XE-native.yang:2592 (at yang/vendor/cisco/xe/1781/Cisco-IOS-XE-interfaces.yang:6310): warning: node "Cisco-IOS-XE-native::native" is not found in module "Cisco-IOS-XE-interfaces"
yang/vendor/cisco/xe/1781/Cisco-IOS-XE-native.yang:2543 (at yang/vendor/cisco/xe/1781/Cisco-IOS-XE-ip.yang:1615): warning: node "Cisco-IOS-XE-native::native" is not found in module "Cisco-IOS-XE-ip"
yang/vendor/cisco/xe/1781/Cisco-IOS-XE-native.yang:2543 (at yang/vendor/cisco/xe/1781/Cisco-IOS-XE-ip.yang:1790): warning: node "Cisco-IOS-XE-native::native" is not found in module "Cisco-IOS-XE-ip"
yang/vendor/cisco/xe/1781/Cisco-IOS-XE-native.yang:2543 (at yang/vendor/cisco/xe/1781/Cisco-IOS-XE-ip.yang:1793): warning: node "Cisco-IOS-XE-native::native" is not found in module "Cisco-IOS-XE-ip"
yang/vendor/cisco/xe/1781/Cisco-IOS-XE-native.yang:2543 (at yang/vendor/cisco/xe/1781/Cisco-IOS-XE-ip.yang:1796): warning: node "Cisco-IOS-XE-native::native" is not found in module "Cisco-IOS-XE-ip"
yang/vendor/cisco/xe/1781/Cisco-IOS-XE-native.yang:2543 (at yang/vendor/cisco/xe/1781/Cisco-IOS-XE-ip.yang:1799): warning: node "Cisco-IOS-XE-native::native" is not found in module "Cisco-IOS-XE-ip"
yang/vendor/cisco/xe/1781/Cisco-IOS-XE-native.yang:2543 (at yang/vendor/cisco/xe/1781/Cisco-IOS-XE-ip.yang:1802): warning: node "Cisco-IOS-XE-native::native" is not found in module "Cisco-IOS-XE-ip"
yang/vendor/cisco/xe/1781/Cisco-IOS-XE-native.yang:2543 (at yang/vendor/cisco/xe/1781/Cisco-IOS-XE-ip.yang:1805): warning: node "Cisco-IOS-XE-native::native" is not found in module "Cisco-IOS-XE-ip"
yang/vendor/cisco/xe/1781/Cisco-IOS-XE-native.yang:2543 (at yang/vendor/cisco/xe/1781/Cisco-IOS-XE-ip.yang:1808): warning: node "Cisco-IOS-XE-native::native" is not found in module "Cisco-IOS-XE-ip"
yang/vendor/cisco/xe/1781/Cisco-IOS-XE-native.yang:2543 (at yang/vendor/cisco/xe/1781/Cisco-IOS-XE-ip.yang:1811): warning: node "Cisco-IOS-XE-native::native" is not found in module "Cisco-IOS-XE-ip"
yang/vendor/cisco/xe/1781/Cisco-IOS-XE-native.yang:2543 (at yang/vendor/cisco/xe/1781/Cisco-IOS-XE-ip.yang:1814): warning: node "Cisco-IOS-XE-native::native" is not found in module "Cisco-IOS-XE-ip"
yang/vendor/cisco/xe/1781/Cisco-IOS-XE-native.yang:2543 (at yang/vendor/cisco/xe/1781/Cisco-IOS-XE-ip.yang:1817): warning: node "Cisco-IOS-XE-native::native" is not found in module "Cisco-IOS-XE-ip"
yang/vendor/cisco/xe/1781/Cisco-IOS-XE-native.yang:2543 (at yang/vendor/cisco/xe/1781/Cisco-IOS-XE-ip.yang:1820): warning: node "Cisco-IOS-XE-native::native" is not found in module "Cisco-IOS-XE-ip"
yang/vendor/cisco/xe/1781/Cisco-IOS-XE-native.yang:2543 (at yang/vendor/cisco/xe/1781/Cisco-IOS-XE-ip.yang:1823): warning: node "Cisco-IOS-XE-native::native" is not found in module "Cisco-IOS-XE-ip"
yang/vendor/cisco/xe/1781/Cisco-IOS-XE-native.yang:2543 (at yang/vendor/cisco/xe/1781/Cisco-IOS-XE-ip.yang:1826): warning: node "Cisco-IOS-XE-native::native" is not found in module "Cisco-IOS-XE-ip"
yang/vendor/cisco/xe/1781/Cisco-IOS-XE-native.yang:2543 (at yang/vendor/cisco/xe/1781/Cisco-IOS-XE-ip.yang:1829): warning: node "Cisco-IOS-XE-native::native" is not found in module "Cisco-IOS-XE-ip"
yang/vendor/cisco/xe/1781/Cisco-IOS-XE-native.yang:2543 (at yang/vendor/cisco/xe/1781/Cisco-IOS-XE-ip.yang:1832): warning: node "Cisco-IOS-XE-native::native" is not found in module "Cisco-IOS-XE-ip"
yang/vendor/cisco/xe/1781/Cisco-IOS-XE-native.yang:2543 (at yang/vendor/cisco/xe/1781/Cisco-IOS-XE-ip.yang:1835): warning: node "Cisco-IOS-XE-native::native" is not found in module "Cisco-IOS-XE-ip"
yang/vendor/cisco/xe/1781/Cisco-IOS-XE-native.yang:2543 (at yang/vendor/cisco/xe/1781/Cisco-IOS-XE-ip.yang:1838): warning: node "Cisco-IOS-XE-native::native" is not found in module "Cisco-IOS-XE-ip"
yang/vendor/cisco/xe/1781/Cisco-IOS-XE-native.yang:2543 (at yang/vendor/cisco/xe/1781/Cisco-IOS-XE-ip.yang:1876): warning: node "Cisco-IOS-XE-native::native" is not found in module "Cisco-IOS-XE-ip"
yang/vendor/cisco/xe/1781/Cisco-IOS-XE-native.yang:2543 (at yang/vendor/cisco/xe/1781/Cisco-IOS-XE-ip.yang:1879): warning: node "Cisco-IOS-XE-native::native" is not found in module "Cisco-IOS-XE-ip"
yang/vendor/cisco/xe/1781/Cisco-IOS-XE-native.yang:2543 (at yang/vendor/cisco/xe/1781/Cisco-IOS-XE-ip.yang:1882): warning: node "Cisco-IOS-XE-native::native" is not found in module "Cisco-IOS-XE-ip"
yang/vendor/cisco/xe/1781/Cisco-IOS-XE-native.yang:2543 (at yang/vendor/cisco/xe/1781/Cisco-IOS-XE-ip.yang:1885): warning: node "Cisco-IOS-XE-native::native" is not found in module "Cisco-IOS-XE-ip"
yang/vendor/cisco/xe/1781/Cisco-IOS-XE-native.yang:2543 (at yang/vendor/cisco/xe/1781/Cisco-IOS-XE-ip.yang:1888): warning: node "Cisco-IOS-XE-native::native" is not found in module "Cisco-IOS-XE-ip"
yang/vendor/cisco/xe/1781/Cisco-IOS-XE-native.yang:2543 (at yang/vendor/cisco/xe/1781/Cisco-IOS-XE-ip.yang:1891): warning: node "Cisco-IOS-XE-native::native" is not found in module "Cisco-IOS-XE-ip"
yang/vendor/cisco/xe/1781/Cisco-IOS-XE-native.yang:2543 (at yang/vendor/cisco/xe/1781/Cisco-IOS-XE-ip.yang:1894): warning: node "Cisco-IOS-XE-native::native" is not found in module "Cisco-IOS-XE-ip"
yang/vendor/cisco/xe/1781/Cisco-IOS-XE-native.yang:2543 (at yang/vendor/cisco/xe/1781/Cisco-IOS-XE-ip.yang:1897): warning: node "Cisco-IOS-XE-native::native" is not found in module "Cisco-IOS-XE-ip"
yang/vendor/cisco/xe/1781/Cisco-IOS-XE-native.yang:2543 (at yang/vendor/cisco/xe/1781/Cisco-IOS-XE-ip.yang:1900): warning: node "Cisco-IOS-XE-native::native" is not found in module "Cisco-IOS-XE-ip"
yang/vendor/cisco/xe/1781/Cisco-IOS-XE-native.yang:2543 (at yang/vendor/cisco/xe/1781/Cisco-IOS-XE-ip.yang:1903): warning: node "Cisco-IOS-XE-native::native" is not found in module "Cisco-IOS-XE-ip"
yang/vendor/cisco/xe/1781/Cisco-IOS-XE-native.yang:2543 (at yang/vendor/cisco/xe/1781/Cisco-IOS-XE-ip.yang:1906): warning: node "Cisco-IOS-XE-native::native" is not found in module "Cisco-IOS-XE-ip"
yang/vendor/cisco/xe/1781/Cisco-IOS-XE-native.yang:2543 (at yang/vendor/cisco/xe/1781/Cisco-IOS-XE-ip.yang:1909): warning: node "Cisco-IOS-XE-native::native" is not found in module "Cisco-IOS-XE-ip"
yang/vendor/cisco/xe/1781/Cisco-IOS-XE-native.yang:2543 (at yang/vendor/cisco/xe/1781/Cisco-IOS-XE-ip.yang:1912): warning: node "Cisco-IOS-XE-native::native" is not found in module "Cisco-IOS-XE-ip"
yang/vendor/cisco/xe/1781/Cisco-IOS-XE-native.yang:2543 (at yang/vendor/cisco/xe/1781/Cisco-IOS-XE-ip.yang:1915): warning: node "Cisco-IOS-XE-native::native" is not found in module "Cisco-IOS-XE-ip"
yang/vendor/cisco/xe/1781/Cisco-IOS-XE-native.yang:2543 (at yang/vendor/cisco/xe/1781/Cisco-IOS-XE-ip.yang:1918): warning: node "Cisco-IOS-XE-native::native" is not found in module "Cisco-IOS-XE-ip"
yang/vendor/cisco/xe/1781/Cisco-IOS-XE-native.yang:2543 (at yang/vendor/cisco/xe/1781/Cisco-IOS-XE-ip.yang:1921): warning: node "Cisco-IOS-XE-native::native" is not found in module "Cisco-IOS-XE-ip"
yang/vendor/cisco/xe/1781/Cisco-IOS-XE-native.yang:2543 (at yang/vendor/cisco/xe/1781/Cisco-IOS-XE-ip.yang:1924): warning: node "Cisco-IOS-XE-native::native" is not found in module "Cisco-IOS-XE-ip"
yang/vendor/cisco/xe/1781/Cisco-IOS-XE-native.yang:2543 (at yang/vendor/cisco/xe/1781/Cisco-IOS-XE-ip.yang:3232): warning: node "Cisco-IOS-XE-native::native" is not found in module "Cisco-IOS-XE-ip"
yang/vendor/cisco/xe/1781/Cisco-IOS-XE-native.yang:2543 (at yang/vendor/cisco/xe/1781/Cisco-IOS-XE-ip.yang:3288): warning: node "Cisco-IOS-XE-native::native" is not found in module "Cisco-IOS-XE-ip"
yang/vendor/cisco/xe/1781/Cisco-IOS-XE-native.yang:2543 (at yang/vendor/cisco/xe/1781/Cisco-IOS-XE-ip.yang:3816): warning: node "Cisco-IOS-XE-native::native" is not found in module "Cisco-IOS-XE-ip"
yang/vendor/cisco/xe/1781/Cisco-IOS-XE-native.yang:2565 (at yang/vendor/cisco/xe/1781/Cisco-IOS-XE-ipv6.yang:503): warning: node "Cisco-IOS-XE-native::native" is not found in module "Cisco-IOS-XE-ipv6"
yang/vendor/cisco/xe/1781/Cisco-IOS-XE-native.yang:2565 (at yang/vendor/cisco/xe/1781/Cisco-IOS-XE-ipv6.yang:527): warning: node "Cisco-IOS-XE-native::native" is not found in module "Cisco-IOS-XE-ipv6"
yang/vendor/cisco/xe/1781/Cisco-IOS-XE-native.yang:2862 (at yang/vendor/cisco/xe/1781/Cisco-IOS-XE-logging.yang:235): warning: node "Cisco-IOS-XE-native::native" is not found in module "Cisco-IOS-XE-logging"
yang/vendor/cisco/xe/1781/Cisco-IOS-XE-native.yang:2862 (at yang/vendor/cisco/xe/1781/Cisco-IOS-XE-logging.yang:244): warning: node "Cisco-IOS-XE-native::native" is not found in module "Cisco-IOS-XE-logging"
yang/vendor/cisco/xe/1781/Cisco-IOS-XE-native.yang:2862 (at yang/vendor/cisco/xe/1781/Cisco-IOS-XE-logging.yang:673): warning: node "Cisco-IOS-XE-native::native" is not found in module "Cisco-IOS-XE-logging"
yang/vendor/cisco/xe/1781/Cisco-IOS-XE-native.yang:2862 (at yang/vendor/cisco/xe/1781/Cisco-IOS-XE-logging.yang:728): warning: node "Cisco-IOS-XE-native::native" is not found in module "Cisco-IOS-XE-logging"
yang/vendor/cisco/xe/1781/Cisco-IOS-XE-native.yang:2862 (at yang/vendor/cisco/xe/1781/Cisco-IOS-XE-logging.yang:860): warning: node "Cisco-IOS-XE-native::native" is not found in module "Cisco-IOS-XE-logging"
yang/vendor/cisco/xe/1781/Cisco-IOS-XE-native.yang:2862 (at yang/vendor/cisco/xe/1781/Cisco-IOS-XE-logging.yang:922): warning: node "Cisco-IOS-XE-native::native" is not found in module "Cisco-IOS-XE-logging"
yang/vendor/cisco/xe/1781/Cisco-IOS-XE-native.yang:2862 (at yang/vendor/cisco/xe/1781/Cisco-IOS-XE-logging.yang:1120): warning: node "Cisco-IOS-XE-native::native" is not found in module "Cisco-IOS-XE-logging"
yang/vendor/cisco/xe/1781/Cisco-IOS-XE-native.yang:2862 (at yang/vendor/cisco/xe/1781/Cisco-IOS-XE-logging.yang:1135): warning: node "Cisco-IOS-XE-native::native" is not found in module "Cisco-IOS-XE-logging"
yang/vendor/cisco/xe/1781/Cisco-IOS-XE-native.yang:2862 (at yang/vendor/cisco/xe/1781/Cisco-IOS-XE-logging.yang:1168): warning: node "Cisco-IOS-XE-native::native" is not found in module "Cisco-IOS-XE-logging"
yang/vendor/cisco/xe/1781/Cisco-IOS-XE-native.yang:2862 (at yang/vendor/cisco/xe/1781/Cisco-IOS-XE-logging.yang:1183): warning: node "Cisco-IOS-XE-native::native" is not found in module "Cisco-IOS-XE-logging"
&amp;lt;?xml version='1.0' encoding='UTF-8'?&amp;gt;
&amp;lt;data xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"/&amp;gt;
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am now wondering whether there might be an issue with the IOS-XE 17.8.1 YANG models and how to proceed. Any support is very much appreciated. Thank you, a lot, in advance for your support.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Oct 2022 12:44:53 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/module-error-with-pyang-sample-xml-skeleton-and-ios-xe-yang/m-p/4709401#M1040</guid>
      <dc:creator>DrSchw0b</dc:creator>
      <dc:date>2022-10-25T12:44:53Z</dc:date>
    </item>
    <item>
      <title>Re: Module Error with pyang sample-xml-skeleton and IOS-XE YANG models</title>
      <link>https://community.cisco.com/t5/tools/module-error-with-pyang-sample-xml-skeleton-and-ios-xe-yang/m-p/4709734#M1041</link>
      <description>&lt;P&gt;The ntp model augments the Cisco-IOS-XE-native model so looking directly at the ntp model will give you nothing. &amp;nbsp;I suggest you look at &lt;A href="https://developer.cisco.com/yangsuite" target="_blank"&gt;https://developer.cisco.com/yangsuite&lt;/A&gt;. &amp;nbsp;Yangsuite will gather together all the model dependencies and give you a visual tree structure to look at. &amp;nbsp;You can also interact with devices using various protocols like NETCONF, RESTCONF, and gNMI.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Oct 2022 18:34:55 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/module-error-with-pyang-sample-xml-skeleton-and-ios-xe-yang/m-p/4709734#M1041</guid>
      <dc:creator>miott</dc:creator>
      <dc:date>2022-10-25T18:34:55Z</dc:date>
    </item>
    <item>
      <title>Re: Module Error with pyang sample-xml-skeleton and IOS-XE YANG models</title>
      <link>https://community.cisco.com/t5/tools/module-error-with-pyang-sample-xml-skeleton-and-ios-xe-yang/m-p/4710381#M1042</link>
      <description>&lt;P&gt;Thank you for pointing me into the right direction. I was able to get the required XML "template" with pyang using the following command:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;pyang -f sample-xml-skeleton Cisco-IOS-XE-native.yang Cisco-IOS-XE-ntp.yang --sample-xml-skeleton-defaults --sample-xml-skeleton-path=/native/ntp&lt;/LI-CODE&gt;
&lt;P&gt;I learned that the file names of all required models must be passed to pyang for it to work. The "tree" output with a single model might work; however, this model might lack the surrounding element structure. For the NTP servers to be set, the "native" tags must surround the "ntp" element.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Oct 2022 07:11:26 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/module-error-with-pyang-sample-xml-skeleton-and-ios-xe-yang/m-p/4710381#M1042</guid>
      <dc:creator>DrSchw0b</dc:creator>
      <dc:date>2022-10-26T07:11:26Z</dc:date>
    </item>
    <item>
      <title>Re: Module Error with pyang sample-xml-skeleton and IOS-XE YANG models</title>
      <link>https://community.cisco.com/t5/tools/module-error-with-pyang-sample-xml-skeleton-and-ios-xe-yang/m-p/5065768#M3502</link>
      <description>&lt;P&gt;&lt;a href="https://community.cisco.com/t5/user/viewprofilepage/user-id/422631"&gt;@DrSchw0b&lt;/a&gt;&amp;nbsp;where did you get the /native/ntp from as the path ?&lt;/P&gt;</description>
      <pubDate>Thu, 11 Apr 2024 06:29:06 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/module-error-with-pyang-sample-xml-skeleton-and-ios-xe-yang/m-p/5065768#M3502</guid>
      <dc:creator>Umesh Shetty</dc:creator>
      <dc:date>2024-04-11T06:29:06Z</dc:date>
    </item>
    <item>
      <title>Re: Module Error with pyang sample-xml-skeleton and IOS-XE YANG models</title>
      <link>https://community.cisco.com/t5/tools/module-error-with-pyang-sample-xml-skeleton-and-ios-xe-yang/m-p/5065886#M3503</link>
      <description>&lt;P&gt;Hello&lt;a href="https://community.cisco.com/t5/user/viewprofilepage/user-id/323204"&gt;@Umesh Shetty&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;unfortunately, I haven't had a chance to use YANG since those days. If I remember correctly, "/native/ntp" is the path within the YANG structure from which we wanted to get the XML skeleton. This path is used to "carve away" the unnecessary tree structure of the "entire" native model, to focus just on the NTP configuration. So we just get the XML structure of what is of interest for us. You could select any leaf in the tree by use of the path option. You can derive the path form the nodes within the YAML tree structure.&lt;/P&gt;
&lt;P&gt;On another note, my problem was solved by passing not only the NTP YANG model to pyang, but also the model in which the NTP model is embedded: &lt;STRONG&gt;Cisco-IOS-XE-native.yang&lt;/STRONG&gt; Cisco-IOS-XE-ntp.yang&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Apr 2024 08:07:02 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/module-error-with-pyang-sample-xml-skeleton-and-ios-xe-yang/m-p/5065886#M3503</guid>
      <dc:creator>DrSchw0b</dc:creator>
      <dc:date>2024-04-11T08:07:02Z</dc:date>
    </item>
    <item>
      <title>Re: Module Error with pyang sample-xml-skeleton and IOS-XE YANG models</title>
      <link>https://community.cisco.com/t5/tools/module-error-with-pyang-sample-xml-skeleton-and-ios-xe-yang/m-p/5067845#M3504</link>
      <description>&lt;P&gt;Thanks &lt;a href="https://community.cisco.com/t5/user/viewprofilepage/user-id/422631"&gt;@DrSchw0b&lt;/a&gt;&amp;nbsp;, I have a folder structure cloned from GIT Yang repo and my module depends on the ietf-native but also a couple others. Should I be listing all the dependent modules ?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 13 Apr 2024 05:51:45 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/module-error-with-pyang-sample-xml-skeleton-and-ios-xe-yang/m-p/5067845#M3504</guid>
      <dc:creator>Umesh Shetty</dc:creator>
      <dc:date>2024-04-13T05:51:45Z</dc:date>
    </item>
  </channel>
</rss>

