<?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: deref() doesn't work in NSO Developer Hub Discussions</title>
    <link>https://community.cisco.com/t5/nso-developer-hub-discussions/deref-doesn-t-work/m-p/3761649#M3045</link>
    <description>&lt;P&gt;This has been solved. Pyang was reporting error but there was no issue with the compilation.&lt;/P&gt;
&lt;P&gt;Thanks !!!&lt;/P&gt;</description>
    <pubDate>Wed, 12 Dec 2018 01:38:55 GMT</pubDate>
    <dc:creator>prmalik</dc:creator>
    <dc:date>2018-12-12T01:38:55Z</dc:date>
    <item>
      <title>deref() doesn't work</title>
      <link>https://community.cisco.com/t5/nso-developer-hub-discussions/deref-doesn-t-work/m-p/3759324#M3027</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;
&lt;P&gt;I have below error with the deref(). I also looked at Xpath and some old discussions but not able to figure out the issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="s1"&gt;leaf&lt;/SPAN&gt; sitename-existing {&lt;/P&gt;
&lt;P class="p2"&gt;&lt;SPAN class="s2"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;tailf:info &lt;/SPAN&gt;"Unique Existing Site Name"&lt;SPAN class="s2"&gt;;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p2"&gt;&lt;SPAN class="s2"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;description&lt;/SPAN&gt; "This leaf for existing sitename. This is needed to pull site UUID "&lt;SPAN class="s2"&gt;;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="s1"&gt;type&lt;/SPAN&gt; &lt;SPAN class="s3"&gt;leafref&lt;/SPAN&gt; {&lt;/P&gt;
&lt;P class="p2"&gt;&lt;SPAN class="s2"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;path&lt;/SPAN&gt; "deref(../../device)/../ncs:config/vts-service:vts-service/vts-service:sites/vts-service:site/vts-service:id"&lt;SPAN class="s2"&gt;;&lt;/SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;}&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Error :&lt;/P&gt;
&lt;P&gt;vtsInstance-site-router.yang:41: error: vtsInstance-site-router:device in the path for sitename-existing at vtsInstance-site-router.yang:37 is not found&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Below are details (Xpath for reference)&lt;/P&gt;
&lt;P&gt;/devices/device[name='MPN-DEV0']/config/vts-service:vts-service/sites/site[id='be416d94-a2c2-41a4-b186-aec1739413ff']/name SITE3&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you pls help me to understand what's wrong here ?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Dec 2018 00:39:46 GMT</pubDate>
      <guid>https://community.cisco.com/t5/nso-developer-hub-discussions/deref-doesn-t-work/m-p/3759324#M3027</guid>
      <dc:creator>prmalik</dc:creator>
      <dc:date>2018-12-07T00:39:46Z</dc:date>
    </item>
    <item>
      <title>Re: deref() doesn't work</title>
      <link>https://community.cisco.com/t5/nso-developer-hub-discussions/deref-doesn-t-work/m-p/3759439#M3028</link>
      <description>&lt;P&gt;As the error message says, in your YANG module&amp;nbsp;&lt;SPAN&gt;vtsInstance-site-router, two steps up from the&amp;nbsp;&lt;/SPAN&gt;deref(), no leaf named device can be found. So check the path, to many, to few ../ ?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Dec 2018 08:45:53 GMT</pubDate>
      <guid>https://community.cisco.com/t5/nso-developer-hub-discussions/deref-doesn-t-work/m-p/3759439#M3028</guid>
      <dc:creator>hniska</dc:creator>
      <dc:date>2018-12-07T08:45:53Z</dc:date>
    </item>
    <item>
      <title>Re: deref() doesn't work</title>
      <link>https://community.cisco.com/t5/nso-developer-hub-discussions/deref-doesn-t-work/m-p/3760266#M3034</link>
      <description>&lt;P&gt;Hi Hakan,&lt;/P&gt;
&lt;P&gt;Thanks for your reply. I tried all combinations, after fixing device, I get below error :&lt;/P&gt;
&lt;P&gt;error: vts-service:vts-service in the path for sitename-existing at vtsInstance-site-router.yang:45 is not found&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;for testing, I have configured&amp;nbsp;as following :&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;(Below path is not working)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;path&lt;/SPAN&gt; "/ncs:devices/ncs:device[ncs:name=current()/../device]/ncs:config/vts-service:vts-service/vts-service:sites/vts-service:site/vts-service:id"&lt;SPAN class="s2"&gt;;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s2"&gt;I have similar path working fine for XR (below path is working fine)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;path&lt;/SPAN&gt; "/ncs:devices/ncs:device[ncs:name=current()/../../device]/ncs:config/cisco-ios-xr:interface/cisco-ios-xr:GigabitEthernet/cisco-ios-xr:id"&lt;SPAN class="s2"&gt;;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s2"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s2"&gt;I am still not sure issue with the vts-service as I see below xpath on NSO&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s2"&gt;admin@ncs# show running-config devices device MPN-DEV0 config | display xpath&lt;BR /&gt;/devices/device[name='MPN-DEV0']/config/vts-service:vts-service/sites/site[id='be416d94-a2c2-41a4-b186-aec1739413ff']/name SITE3&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s2"&gt;Do you know why its complaining about&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;vts&lt;SPAN&gt;-service ?&amp;nbsp;or something I have still wrong in the path ?&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 09 Dec 2018 17:11:59 GMT</pubDate>
      <guid>https://community.cisco.com/t5/nso-developer-hub-discussions/deref-doesn-t-work/m-p/3760266#M3034</guid>
      <dc:creator>prmalik</dc:creator>
      <dc:date>2018-12-09T17:11:59Z</dc:date>
    </item>
    <item>
      <title>Re: deref() doesn't work</title>
      <link>https://community.cisco.com/t5/nso-developer-hub-discussions/deref-doesn-t-work/m-p/3761649#M3045</link>
      <description>&lt;P&gt;This has been solved. Pyang was reporting error but there was no issue with the compilation.&lt;/P&gt;
&lt;P&gt;Thanks !!!&lt;/P&gt;</description>
      <pubDate>Wed, 12 Dec 2018 01:38:55 GMT</pubDate>
      <guid>https://community.cisco.com/t5/nso-developer-hub-discussions/deref-doesn-t-work/m-p/3761649#M3045</guid>
      <dc:creator>prmalik</dc:creator>
      <dc:date>2018-12-12T01:38:55Z</dc:date>
    </item>
  </channel>
</rss>

