<?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: tailff:dependency and enum issues in NSO Developer Hub Discussions</title>
    <link>https://community.cisco.com/t5/nso-developer-hub-discussions/tailff-dependency-and-enum-issues/m-p/3813977#M3452</link>
    <description>&lt;P&gt;thanks...I was using "when" for the wrong purpose...may be I should play with "must"&lt;/P&gt;</description>
    <pubDate>Tue, 05 Mar 2019 04:38:46 GMT</pubDate>
    <dc:creator>kerim mohammed</dc:creator>
    <dc:date>2019-03-05T04:38:46Z</dc:date>
    <item>
      <title>tailff:dependency and enum issues</title>
      <link>https://community.cisco.com/t5/nso-developer-hub-discussions/tailff-dependency-and-enum-issues/m-p/3813252#M3442</link>
      <description>&lt;P&gt;Guys,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;list device-role {&lt;BR /&gt;key "role";&lt;BR /&gt;tailf:cli-compact-syntax;&lt;BR /&gt;leaf role {&lt;BR /&gt;type enumeration {&lt;BR /&gt;enum spines;&lt;BR /&gt;enum leafs;&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;leaf-list device {&lt;BR /&gt;type leafref {&lt;BR /&gt;path "/ncs:devices/ncs:device/ncs:name";&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;here is snippet of the model generating issue:&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;list leaf-sw {&lt;BR /&gt;key name;&lt;BR /&gt;leaf name {&lt;BR /&gt;when "deref(../../cz)/../device-role= 'leafs'" {&lt;BR /&gt;tailf:dependency "/dcrouting:us-datacenters/dc/l3cz-topology/device-role";&lt;BR /&gt;}&lt;BR /&gt;type leafref {&lt;BR /&gt;path "deref(../../cz)/../device-role/device";&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;here is the issue am seeing when compiling the yang model:&lt;/P&gt;
&lt;P&gt;yang/dcrouting.yang:58: warning: Given dependencies are not equal to calculated: ../../../../device-role. Consider removing tailf:dependency statements.&lt;BR /&gt;yang/dcrouting.yang:72: warning: Given dependencies are not equal to calculated: ../../../../device-role. Consider removing tailf:dependency statements.&lt;BR /&gt;yang/dcrouting.yang:92: warning: Given dependencies are not equal to calculated: ../../../../device-role. Consider removing tailf:dependency statements.&lt;BR /&gt;yang/dcrouting.yang:106: warning: Given dependencies are not equal to calculated: ../../../../device-role. Consider removing tailf:dependency statements.&lt;BR /&gt;admin@NSO-SIM:~/ncs-run/packages/dcrouting/src$&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;please let me know how to make when statement work or what I am doing wrong.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thanks,&lt;/P&gt;
&lt;P&gt;Kerim&lt;/P&gt;</description>
      <pubDate>Sun, 03 Mar 2019 22:27:46 GMT</pubDate>
      <guid>https://community.cisco.com/t5/nso-developer-hub-discussions/tailff-dependency-and-enum-issues/m-p/3813252#M3442</guid>
      <dc:creator>kerim mohammed</dc:creator>
      <dc:date>2019-03-03T22:27:46Z</dc:date>
    </item>
    <item>
      <title>Re: tailff:dependency and enum issues</title>
      <link>https://community.cisco.com/t5/nso-developer-hub-discussions/tailff-dependency-and-enum-issues/m-p/3813418#M3443</link>
      <description>&lt;P style="text-align: left;"&gt;Those are only warnings, so it will work anyhow.&lt;/P&gt;
&lt;P style="text-align: left;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="text-align: left;"&gt;But what it means is that your path differs from the calculated path. When NSO can automatically derive a dependency, you might as well remove your manual dependency.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2019 10:09:37 GMT</pubDate>
      <guid>https://community.cisco.com/t5/nso-developer-hub-discussions/tailff-dependency-and-enum-issues/m-p/3813418#M3443</guid>
      <dc:creator>vleijon</dc:creator>
      <dc:date>2019-03-04T10:09:37Z</dc:date>
    </item>
    <item>
      <title>Re: tailff:dependency and enum issues</title>
      <link>https://community.cisco.com/t5/nso-developer-hub-discussions/tailff-dependency-and-enum-issues/m-p/3813977#M3452</link>
      <description>&lt;P&gt;thanks...I was using "when" for the wrong purpose...may be I should play with "must"&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2019 04:38:46 GMT</pubDate>
      <guid>https://community.cisco.com/t5/nso-developer-hub-discussions/tailff-dependency-and-enum-issues/m-p/3813977#M3452</guid>
      <dc:creator>kerim mohammed</dc:creator>
      <dc:date>2019-03-05T04:38:46Z</dc:date>
    </item>
  </channel>
</rss>

