<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:54:30 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>OpenDaylight JIRA</title>
    <link>https://jira.opendaylight.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>8.20.10</version>
        <build-number>820010</build-number>
        <build-date>22-06-2022</build-date>
    </build-info>


<item>
            <title>[YANGTOOLS-857] YANG parser should honor RFC7950 section 6.2.1 restrictions</title>
                <link>https://jira.opendaylight.org/browse/YANGTOOLS-857</link>
                <project id="10188" key="YANGTOOLS">yangtools</project>
                    <description>&lt;p&gt;As in&#160;RFC 7950 section 6.2.1:&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;o All leafs, leaf-lists, lists, containers, choices, rpcs, actions,&lt;br/&gt;
notifications, anydatas, and anyxmls defined (directly or through&lt;br/&gt;
a &quot;uses&quot; statement) within a parent node or at the top level of&lt;br/&gt;
the module or its submodules share the same identifier namespace.&lt;br/&gt;
This namespace is scoped to the parent node or module,&lt;font color=&quot;#d04437&quot;&gt; unless the&lt;/font&gt;&lt;br/&gt;
&lt;font color=&quot;#d04437&quot;&gt;parent node is a case node.&lt;/font&gt;&lt;font color=&quot;#FF0000&quot;&gt;&#160;In that case, the namespace is scoped&lt;br/&gt;
to the closest ancestor node that is not a case or choice node&lt;/font&gt;.&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;We should take into consideration the following 3 models:&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
module bar {
    yang-version 1.1;
    namespace bar;
    prefix bar;

    revision &lt;span class=&quot;code-quote&quot;&gt;&quot;2018-02-11&quot;&lt;/span&gt;;

    grouping foo {
      container bar {

      }
    }

    container cont {
      choice bar {
        &lt;span class=&quot;code-keyword&quot;&gt;case&lt;/span&gt; foo {
          uses foo;
        }
      }
    }

    augment &lt;span class=&quot;code-quote&quot;&gt;&quot;/cont&quot;&lt;/span&gt; {
      choice foo {
        &lt;span class=&quot;code-keyword&quot;&gt;case&lt;/span&gt; foo {
          uses foo;
        }
      }
    }
}

module baz {
    yang-version 1.1;
    namespace baz;
    prefix baz;

    revision &lt;span class=&quot;code-quote&quot;&gt;&quot;2018-02-28&quot;&lt;/span&gt;;

    grouping foo {
      container bar {

      }
    }

    container cont {
      choice bar {
        &lt;span class=&quot;code-keyword&quot;&gt;case&lt;/span&gt; foo {
          uses foo;
        }
      }

      container bar {

      }
    }
}

module foo {
    yang-version 1.1;
    namespace foo;
    prefix foo;

    revision &lt;span class=&quot;code-quote&quot;&gt;&quot;2018-02-11&quot;&lt;/span&gt;;

    grouping foo {
      container bar {

      }
    }

    container cont {
      choice bar {
        &lt;span class=&quot;code-keyword&quot;&gt;case&lt;/span&gt; foo {
          uses foo;
        }
      }
    }

    augment &lt;span class=&quot;code-quote&quot;&gt;&quot;/cont/bar&quot;&lt;/span&gt; {
      &lt;span class=&quot;code-keyword&quot;&gt;case&lt;/span&gt; foo2 {
        uses foo;
      }
    }
}

&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
        <key id="29324">YANGTOOLS-857</key>
            <summary>YANG parser should honor RFC7950 section 6.2.1 restrictions</summary>
                <type id="10104" iconUrl="https://jira.opendaylight.org/secure/viewavatar?size=xsmall&amp;avatarId=10303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="3" iconUrl="https://jira.opendaylight.org/images/icons/priorities/major.svg">Medium</priority>
                        <status id="5" iconUrl="https://jira.opendaylight.org/images/icons/statuses/resolved.png" description="A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.">Resolved</status>
                    <statusCategory id="3" key="done" colorName="green"/>
                                    <resolution id="10000">Done</resolution>
                                        <assignee username="rovarga">Robert Varga</assignee>
                                    <reporter username="JieHan2017">Jie Han</reporter>
                        <labels>
                    </labels>
                <created>Fri, 2 Mar 2018 08:02:14 +0000</created>
                <updated>Sat, 19 Oct 2019 16:07:22 +0000</updated>
                            <resolved>Wed, 9 Oct 2019 06:39:12 +0000</resolved>
                                    <version>2.1.12</version>
                    <version>3.0.5</version>
                    <version>4.0.1</version>
                                    <fixVersion>3.0.6</fixVersion>
                    <fixVersion>2.1.13</fixVersion>
                    <fixVersion>4.0.2</fixVersion>
                                    <component>parser</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="61387" author="jiehan2017" created="Fri, 2 Mar 2018 08:06:23 +0000"  >&lt;p&gt;master: &lt;a href=&quot;https://git.opendaylight.org/gerrit/68134&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/68134&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="63425" author="rovarga" created="Wed, 13 Jun 2018 12:50:43 +0000"  >&lt;p&gt;This namespace is not really useful to end users, as it is a hybrid between schema tree and data tree addressing.&lt;/p&gt;

&lt;p&gt;Notable difference from schema tree addressing: choices/cases and their data nodes are flattened to their ancestor node (as highlighted in the description).&lt;/p&gt;

&lt;p&gt;Notable difference from data tree addressing: choices/cases contribute to the hierarchy.&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</comment>
                            <comment id="67277" author="rovarga" created="Tue, 8 Oct 2019 11:28:54 +0000"  >&lt;p&gt;It seems &lt;a href=&quot;https://jira.opendaylight.org/browse/YANGTOOLS-853&quot; title=&quot;Fix EffectiveStatement namespace implementation&quot; class=&quot;issue-link&quot; data-issue-key=&quot;YANGTOOLS-853&quot;&gt;YANGTOOLS-853&lt;/a&gt; implementation is missing dataTree population. Using the attached test case container&apos;s dataTreeNamespace is empty &#8211; where it should contain all leaves of choice/case statements. It correctly lists ChoiceNode in its schemaTreeNamespace. Furthermore the ChoiceNode has its dataTreeNamespace empty, too.&lt;/p&gt;</comment>
                            <comment id="67278" author="rovarga" created="Tue, 8 Oct 2019 11:40:57 +0000"  >&lt;p&gt;Ah, right, so LeafEffectiveStatement is just a SchemaTreeEffectiveStatement, not DataTreeEffectiveStatement &#8211; and thus was not attributed correctly.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10002">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="31962">YANGTOOLS-1026</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10003">
                    <name>Relates</name>
                                            <outwardlinks description="relates to">
                                        <issuelink>
            <issuekey id="29277">YANGTOOLS-853</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="relates to">
                                        <issuelink>
            <issuekey id="31984">BGPCEP-880</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="30009">YANGTOOLS-883</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                            <customfield id="customfield_11400" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10000" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|i03b27:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                </customfields>
    </item>
</channel>
</rss>