<?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 NETCONF sync-from the device problem? in NSO Developer Hub Discussions</title>
    <link>https://community.cisco.com/t5/nso-developer-hub-discussions/netconf-sync-from-the-device-problem/m-p/3450827#M441</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have installed NSO 4.5 and I have cisco virtual router CSR 1000V with IOS XE 16.3.5. I have installed cisco-ios package from package/ned NSO directory. With that package, I was able to find, sync and configure the CSR1000V,for the device-type I choose ne-type: cli and ned-id: cisco-ios (installed package) protocol: ssh. Next, I tried the NETCONF communication between NSO and CSR.For device-type I choose ne-type: netconf and ned-id: netconf.I could find and connect to the device but I have problem with sync-from. The problem was manifesting that once I could sync-from the device and once I could not. When I could not sync-from the device i got the following message: ALARM connection-failure: Device 10.14.2.221 does not advertise any known YANG modules. In the following lines you can find the output of devices sync-from command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;admin@ncs# devices sync-from&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;sync-result {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; device 10.14.2.221&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; result false&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; info Device 10.14.2.221 does not advertise any known YANG modules&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;admin@ncs# *** ALARM connection-failure: Device 10.14.2.221 does not advertise any known YANG modules&lt;/P&gt;&lt;P&gt;admin@ncs# devices sync-from&lt;/P&gt;&lt;P&gt;sync-result {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; device 10.14.2.221&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; result true&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;admin@ncs# devices sync-from&lt;/P&gt;&lt;P&gt;sync-result {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; device 10.14.2.221&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; result false&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; info Device 10.14.2.221 does not advertise any known YANG modules&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;admin@ncs# devices sync-from&lt;/P&gt;&lt;P&gt;sync-result {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; device 10.14.2.221&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; result true&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Next I have done is I have downloaded YANG module cisco-mpls-fwd from the &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://github.com/YangModels/yang/blob/master/vendor/cisco/xe/1632/cisco-mpls-fwd.yang" rel="nofollow" target="_blank"&gt;https://github.com/YangModels/yang/blob/master/vendor/cisco/xe/1632/cisco-mpls-fwd.yang&lt;/A&gt;&lt;SPAN&gt;. After I made a package for the module and compile it and reloded NSO packages the problem with sync-from disapeared, so I could sync-from the device every time. I tried to configure interfaces by building and compiling package from the ietf-interfaces module (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://github.com/opendaylight/mdsal/blob/master/model/ietf/ietf-interfaces/src/main/yang/ietf-interfaces.yang" rel="nofollow" target="_blank"&gt;https://github.com/opendaylight/mdsal/blob/master/model/ietf/ietf-interfaces/src/main/yang/ietf-interfaces.yang&lt;/A&gt;&lt;SPAN&gt;). After reloading the interface package into NSO the sync-from could not be done because of the error:&amp;nbsp; info 10.14.2.221: invalid value for: type in /ncs:devices/ncs:device[ncs:name='10.14.2.221']/ncs:config/if:interfaces/if:interface[if:name='GigabitEthernet1']/if:type: "ianaift:ethernetCsmacd" is not a valid value.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;admin@ncs# devices sync-from&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;sync-result {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; device 10.14.2.221&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; result false&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; info 10.14.2.221: invalid value for: type in /ncs:devices/ncs:device[ncs:name='10.14.2.221']/ncs:config/if:interfaces/if:interface[if:name='GigabitEthernet1']/if:type: "ianaift:ethernetCsmacd" is not a valid value.&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On CSR1000V I have 3 GigabitEthernet interfaces.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone help me with the sync-from and interface config problems?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 01 Mar 2019 12:01:58 GMT</pubDate>
    <dc:creator>ivonagutesa</dc:creator>
    <dc:date>2019-03-01T12:01:58Z</dc:date>
    <item>
      <title>NETCONF sync-from the device problem?</title>
      <link>https://community.cisco.com/t5/nso-developer-hub-discussions/netconf-sync-from-the-device-problem/m-p/3450827#M441</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have installed NSO 4.5 and I have cisco virtual router CSR 1000V with IOS XE 16.3.5. I have installed cisco-ios package from package/ned NSO directory. With that package, I was able to find, sync and configure the CSR1000V,for the device-type I choose ne-type: cli and ned-id: cisco-ios (installed package) protocol: ssh. Next, I tried the NETCONF communication between NSO and CSR.For device-type I choose ne-type: netconf and ned-id: netconf.I could find and connect to the device but I have problem with sync-from. The problem was manifesting that once I could sync-from the device and once I could not. When I could not sync-from the device i got the following message: ALARM connection-failure: Device 10.14.2.221 does not advertise any known YANG modules. In the following lines you can find the output of devices sync-from command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;admin@ncs# devices sync-from&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;sync-result {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; device 10.14.2.221&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; result false&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; info Device 10.14.2.221 does not advertise any known YANG modules&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;admin@ncs# *** ALARM connection-failure: Device 10.14.2.221 does not advertise any known YANG modules&lt;/P&gt;&lt;P&gt;admin@ncs# devices sync-from&lt;/P&gt;&lt;P&gt;sync-result {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; device 10.14.2.221&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; result true&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;admin@ncs# devices sync-from&lt;/P&gt;&lt;P&gt;sync-result {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; device 10.14.2.221&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; result false&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; info Device 10.14.2.221 does not advertise any known YANG modules&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;admin@ncs# devices sync-from&lt;/P&gt;&lt;P&gt;sync-result {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; device 10.14.2.221&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; result true&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Next I have done is I have downloaded YANG module cisco-mpls-fwd from the &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://github.com/YangModels/yang/blob/master/vendor/cisco/xe/1632/cisco-mpls-fwd.yang" rel="nofollow" target="_blank"&gt;https://github.com/YangModels/yang/blob/master/vendor/cisco/xe/1632/cisco-mpls-fwd.yang&lt;/A&gt;&lt;SPAN&gt;. After I made a package for the module and compile it and reloded NSO packages the problem with sync-from disapeared, so I could sync-from the device every time. I tried to configure interfaces by building and compiling package from the ietf-interfaces module (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://github.com/opendaylight/mdsal/blob/master/model/ietf/ietf-interfaces/src/main/yang/ietf-interfaces.yang" rel="nofollow" target="_blank"&gt;https://github.com/opendaylight/mdsal/blob/master/model/ietf/ietf-interfaces/src/main/yang/ietf-interfaces.yang&lt;/A&gt;&lt;SPAN&gt;). After reloading the interface package into NSO the sync-from could not be done because of the error:&amp;nbsp; info 10.14.2.221: invalid value for: type in /ncs:devices/ncs:device[ncs:name='10.14.2.221']/ncs:config/if:interfaces/if:interface[if:name='GigabitEthernet1']/if:type: "ianaift:ethernetCsmacd" is not a valid value.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;admin@ncs# devices sync-from&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;sync-result {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; device 10.14.2.221&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; result false&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; info 10.14.2.221: invalid value for: type in /ncs:devices/ncs:device[ncs:name='10.14.2.221']/ncs:config/if:interfaces/if:interface[if:name='GigabitEthernet1']/if:type: "ianaift:ethernetCsmacd" is not a valid value.&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On CSR1000V I have 3 GigabitEthernet interfaces.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone help me with the sync-from and interface config problems?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Mar 2019 12:01:58 GMT</pubDate>
      <guid>https://community.cisco.com/t5/nso-developer-hub-discussions/netconf-sync-from-the-device-problem/m-p/3450827#M441</guid>
      <dc:creator>ivonagutesa</dc:creator>
      <dc:date>2019-03-01T12:01:58Z</dc:date>
    </item>
    <item>
      <title>Re: NETCONF sync-from the device problem?</title>
      <link>https://community.cisco.com/t5/nso-developer-hub-discussions/netconf-sync-from-the-device-problem/m-p/3450828#M442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi There,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NSO can communicate with the device using the data-models that the device actually supports, which depends on the the operating system and version running on it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are two ways to go about it:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;1. Get the latest data-models available for IOS-XE and build a NETCONF NED using these models (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://github.com/YangModels/yang/tree/master/vendor/cisco/xe/1662" rel="nofollow" target="_blank"&gt;https://github.com/YangModels/yang/tree/master/vendor/cisco/xe/1662&lt;/A&gt;&lt;SPAN&gt;).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;2. Use the Pioneer package which queries the device (get-schema), retrieves the data-models supported and builds a NED.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Oct 2017 21:10:04 GMT</pubDate>
      <guid>https://community.cisco.com/t5/nso-developer-hub-discussions/netconf-sync-from-the-device-problem/m-p/3450828#M442</guid>
      <dc:creator>alam.bilal</dc:creator>
      <dc:date>2017-10-31T21:10:04Z</dc:date>
    </item>
  </channel>
</rss>

