<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:54:33 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-872] require-instance on leafref is always false in YANG 1.0 models</title>
                <link>https://jira.opendaylight.org/browse/YANGTOOLS-872</link>
                <project id="10188" key="YANGTOOLS">yangtools</project>
                    <description>&lt;p&gt;We have now a device that uses a YANG 1.1 model with require-instance=false on a leafref, so we are trying to make sure that we don&apos;t validate this leafref by checking when the LeafrefTypeDefinition.requireInstance() method returns false.&lt;/p&gt;

&lt;p&gt;But when we do that, we find that this method returns always false on YANG 1.0 models.&#160;&#160; This is wrong, because in YANG 1.0 it should behave always as true (although the keyword did not exist then).&#160;&#160; If not, since the parser does not provide input on whether some leaf is coming from a YANG 1.0 or YANG 1.1 model, we can&apos;t know whether requireInstance() is false because it was explicitly set as false, or because the keyword didn&apos;t exist.&lt;/p&gt;

&lt;p&gt;Attached a small model to reproduce: the &quot;reference&quot; leaf in mycontainer has requireInstance() = false.&lt;/p&gt;

&lt;p&gt;We are using Nitrogen SR1 at this moment.&lt;/p&gt;</description>
                <environment></environment>
        <key id="29532">YANGTOOLS-872</key>
            <summary>require-instance on leafref is always false in YANG 1.0 models</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="verthezpw">Peter Verthez</reporter>
                        <labels>
                    </labels>
                <created>Tue, 27 Mar 2018 07:42:25 +0000</created>
                <updated>Sun, 1 Apr 2018 02:30:07 +0000</updated>
                            <resolved>Sun, 1 Apr 2018 02:30:06 +0000</resolved>
                                    <version>1.2.1</version>
                                    <fixVersion>1.1.4</fixVersion>
                    <fixVersion>1.2.3</fixVersion>
                    <fixVersion>2.0.4</fixVersion>
                                    <component>parser</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="61987" author="rovarga" created="Thu, 29 Mar 2018 22:49:28 +0000"  >&lt;p&gt;&lt;a href=&quot;https://git.opendaylight.org/gerrit/70201&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/70201&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="61998" author="rovarga" created="Sun, 1 Apr 2018 02:29:34 +0000"  >&lt;p&gt;carbon: &lt;a href=&quot;https://git.opendaylight.org/gerrit/70216&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/70216&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;v1.2.x: &lt;a href=&quot;https://git.opendaylight.org/gerrit/70215&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/70215&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="14506" name="example.yang" size="349" author="verthezpw" created="Tue, 27 Mar 2018 07:42:04 +0000"/>
                    </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|i03ccf:</customfieldvalue>

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