<?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: difference between NSO config and nx device config even after device sync-from in NSO Developer Hub Discussions</title>
    <link>https://community.cisco.com/t5/nso-developer-hub-discussions/difference-between-nso-config-and-nx-device-config-even-after/m-p/3905758#M4155</link>
    <description>&lt;P&gt;Hi Viktor,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for the inputs, another question from this, I performed 2 test cases for ethernet interface on real NX device (NX C9372PX):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;case 1:&lt;/P&gt;
&lt;P&gt;1. I added few config lines of real device to NSO explicitly specifically: "flowcontrol send off" and "flowcontrol receive off", NSO started showing these lines after commit.&lt;/P&gt;
&lt;P&gt;2. I checked device sync, it says it is in sync.&lt;/P&gt;
&lt;P&gt;3. However, if I still do device sync-from, these lines again get removed from NSO full configuration. They remain as is in live-status of device.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;4. Now when I did "no flowcontrol" on NSO- obviously it shows no modifications to commit - if I check live config on device, flowcontrol remains send off and receive off.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;case 2:&lt;/P&gt;
&lt;P&gt;1. same as step 1 of case 1- added flowcontrol receive off and send off to NSO and commit.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. If I check device sync, it says it is in sync.&lt;/P&gt;
&lt;P&gt;3. Now&amp;nbsp;I did "no flowcontrol" on NSO, this removed flowcontrol configs from NSO and in the live status of device, it toggled flowcontrol to send ON and receive ON (which I understand the YANG has extension toggle-on-delete).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The question is what is the correct way of doing "no flowcontrol", why we get different behavior when I do "devices sync-from" before doing "no flowcontrol".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Appreciate your help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 09 Aug 2019 04:18:49 GMT</pubDate>
    <dc:creator>neetimit</dc:creator>
    <dc:date>2019-08-09T04:18:49Z</dc:date>
    <item>
      <title>difference between NSO config and nx device config even after device sync-from</title>
      <link>https://community.cisco.com/t5/nso-developer-hub-discussions/difference-between-nso-config-and-nx-device-config-even-after/m-p/3904743#M4151</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a real nx device, I am trying to sync it on NSO by using devices sync-from, I get result as "true". However, when I compare the configuration of any interface let's say Ethernet 1/39, I see many configs which are present on device but not appearing in NSO and vice-versa.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Some of the differences are:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;only on DEVICE:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; spanning-tree port-priority 128&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;spanning-tree cost auto&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;spanning-tree link-type auto&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;spanning-tree port type normal&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; buffer-boost&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;no switchport monitor&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;no switchport dot1q ethertype&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;switchport access vlan 1&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;switchport trunk native vlan 1&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;only in NSO:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;ip ospf authentication-key 0&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;ip ospf dead-interval 40&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;ip ospf hello-interval 10&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;ip ospf priority&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;1&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is how I am checking the configs:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;on the real device: using live status (verified by logging on to the device as well)&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;admin@ncs-rfs-1(config)# devices device US9314 live-status nx-stats:exec any "show running-config all"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;devices device US9314&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&lt;/SPAN&gt;config&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;nx:interface Ethernet1/39&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; no description&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;priority-flow-control watch-dog-interval off&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;cdp enable&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;switchport&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;switchport mode access&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;no switchport monitor&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;no switchport dot1q ethertype&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;switchport access vlan 1&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;switchport trunk native vlan 1&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;....&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;on NSO:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;show full-configuration devices device US9314 config nx:interface Ethernet 1/39 | details&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;devices device US9314&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&lt;/SPAN&gt;config&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;nx:interface Ethernet1/39&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;lacp rate normal&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;no shutdown&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;ip arp timeout 1500&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;ip arp gratuitous hsrp duplicate&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;ip arp gratuitous request&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;ip arp gratuitous update&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;ip ospf authentication-key 0&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;ip ospf dead-interval 40&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;......&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any idea why this is not syncing properly? Also how can I sync them so that I see same config on NSO?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any inputs appreciated. Thanks!!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2019 17:15:12 GMT</pubDate>
      <guid>https://community.cisco.com/t5/nso-developer-hub-discussions/difference-between-nso-config-and-nx-device-config-even-after/m-p/3904743#M4151</guid>
      <dc:creator>neetimit</dc:creator>
      <dc:date>2019-08-07T17:15:12Z</dc:date>
    </item>
    <item>
      <title>Re: difference between NSO config and nx device config even after device sync-from</title>
      <link>https://community.cisco.com/t5/nso-developer-hub-discussions/difference-between-nso-config-and-nx-device-config-even-after/m-p/3904918#M4152</link>
      <description>This is generally expected, the NED in NSO does not have a complete model of the device config, and does certain normalisations. (Such as making some implicit defaults explicit).&lt;BR /&gt;&lt;BR /&gt;If you have a modern NSO try doing sync-from verbose to see what happens&lt;BR /&gt;</description>
      <pubDate>Wed, 07 Aug 2019 21:51:59 GMT</pubDate>
      <guid>https://community.cisco.com/t5/nso-developer-hub-discussions/difference-between-nso-config-and-nx-device-config-even-after/m-p/3904918#M4152</guid>
      <dc:creator>vleijon</dc:creator>
      <dc:date>2019-08-07T21:51:59Z</dc:date>
    </item>
    <item>
      <title>Re: difference between NSO config and nx device config even after device sync-from</title>
      <link>https://community.cisco.com/t5/nso-developer-hub-discussions/difference-between-nso-config-and-nx-device-config-even-after/m-p/3905117#M4153</link>
      <description>&lt;P&gt;What version of the NX NED are you using? Most recent version is 5.10.4&lt;/P&gt;
&lt;P&gt;Could it be that you are using an old version with low feature coverage?&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2019 08:27:59 GMT</pubDate>
      <guid>https://community.cisco.com/t5/nso-developer-hub-discussions/difference-between-nso-config-and-nx-device-config-even-after/m-p/3905117#M4153</guid>
      <dc:creator>KJ Rossavik</dc:creator>
      <dc:date>2019-08-08T08:27:59Z</dc:date>
    </item>
    <item>
      <title>Re: difference between NSO config and nx device config even after device sync-from</title>
      <link>https://community.cisco.com/t5/nso-developer-hub-discussions/difference-between-nso-config-and-nx-device-config-even-after/m-p/3905758#M4155</link>
      <description>&lt;P&gt;Hi Viktor,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for the inputs, another question from this, I performed 2 test cases for ethernet interface on real NX device (NX C9372PX):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;case 1:&lt;/P&gt;
&lt;P&gt;1. I added few config lines of real device to NSO explicitly specifically: "flowcontrol send off" and "flowcontrol receive off", NSO started showing these lines after commit.&lt;/P&gt;
&lt;P&gt;2. I checked device sync, it says it is in sync.&lt;/P&gt;
&lt;P&gt;3. However, if I still do device sync-from, these lines again get removed from NSO full configuration. They remain as is in live-status of device.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;4. Now when I did "no flowcontrol" on NSO- obviously it shows no modifications to commit - if I check live config on device, flowcontrol remains send off and receive off.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;case 2:&lt;/P&gt;
&lt;P&gt;1. same as step 1 of case 1- added flowcontrol receive off and send off to NSO and commit.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. If I check device sync, it says it is in sync.&lt;/P&gt;
&lt;P&gt;3. Now&amp;nbsp;I did "no flowcontrol" on NSO, this removed flowcontrol configs from NSO and in the live status of device, it toggled flowcontrol to send ON and receive ON (which I understand the YANG has extension toggle-on-delete).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The question is what is the correct way of doing "no flowcontrol", why we get different behavior when I do "devices sync-from" before doing "no flowcontrol".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Appreciate your help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Aug 2019 04:18:49 GMT</pubDate>
      <guid>https://community.cisco.com/t5/nso-developer-hub-discussions/difference-between-nso-config-and-nx-device-config-even-after/m-p/3905758#M4155</guid>
      <dc:creator>neetimit</dc:creator>
      <dc:date>2019-08-09T04:18:49Z</dc:date>
    </item>
    <item>
      <title>Re: difference between NSO config and nx device config even after device sync-from</title>
      <link>https://community.cisco.com/t5/nso-developer-hub-discussions/difference-between-nso-config-and-nx-device-config-even-after/m-p/3905759#M4156</link>
      <description>&lt;P&gt;&lt;a href="https://community.cisco.com/t5/user/viewprofilepage/user-id/699922"&gt;@KJ Rossavik&lt;/a&gt;&amp;nbsp; Thank you for the reply, I checked the NX NED, it supports all the features which are not getting copied. so don't think it is because of NED version.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Aug 2019 04:20:32 GMT</pubDate>
      <guid>https://community.cisco.com/t5/nso-developer-hub-discussions/difference-between-nso-config-and-nx-device-config-even-after/m-p/3905759#M4156</guid>
      <dc:creator>neetimit</dc:creator>
      <dc:date>2019-08-09T04:20:32Z</dc:date>
    </item>
    <item>
      <title>Re: difference between NSO config and nx device config even after device sync-from</title>
      <link>https://community.cisco.com/t5/nso-developer-hub-discussions/difference-between-nso-config-and-nx-device-config-even-after/m-p/3907299#M4166</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;First off, when comparing the config in NSO with the one on the device, it is best to use the "compare-config" in NSO (and check-sync), this will confirm that the view of the device NSO has is "correct", as previously noted, the model in NSO is not complete/perfect so in reality there might be differences. Actual differences are not relevant as long as the config in question is not something you need to use.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Another thing you encounter here is that when you run a "show running-config all" on the device, it will show ALL config (i.e. including "hidden" defaults), this will almost always show diffs compared to NSO's view of the config (both with respect to default values, and also of course due to missing config in model).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The reason for the "differences" you see can also be of a different nature. For example, concerning the "ospf ip ... " its because the model in NSO contains default values, hence these appear as set in NSO (i.e. unset means default). In device the semantics is a bit different, the model should probably contain a "when-statement" to "hide" these when ospf is not configured, however in practice it is not a concern.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Concerning the flow control behaviour you noticed, there is a complication here, since the defaults of these values vary "dynamically" depending on type of port, if one wants to use flow control config (when the defaults are varying), the NED in NSO handles this with the ned-setting "behaviours&amp;nbsp;&lt;SPAN style="font-family: inherit;"&gt;show-interface-all".&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;The README for the NED (found in top of package) contains some information about the various ned-settings which are specific to the NED. These are almost always introduced to handle specific use-cases where the config on the device is not easily mapped to yang, and the transactional nature of NSO.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="inherit"&gt;Best way to inspect if the model can handle your use-case is to set what you need on device and do a sync-from and see how it appears in NSO, this will be what you need to set in NSO to apply this same config to device. Then try setting these values, for example from a service, commit to device and do a compare-config. As long as NSO is in sync (and there is no diff in "compare-config", you're fine). Missing/wrong config with respect to your use-case needs to be reported to TAC. However, missing/wrong config that you will not use is not of importance, again, as long as NSO's view of the device is "in sync", it will not touch&amp;nbsp;&lt;/FONT&gt;the other config anyway.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;Cheers,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;/Mats&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Aug 2019 07:42:29 GMT</pubDate>
      <guid>https://community.cisco.com/t5/nso-developer-hub-discussions/difference-between-nso-config-and-nx-device-config-even-after/m-p/3907299#M4166</guid>
      <dc:creator>matsan2</dc:creator>
      <dc:date>2019-08-13T07:42:29Z</dc:date>
    </item>
  </channel>
</rss>

