<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:53:57 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-669] [Yang 1.1] Support for &quot;require-instance&quot; in leafref</title>
                <link>https://jira.opendaylight.org/browse/YANGTOOLS-669</link>
                <project id="10188" key="YANGTOOLS">yangtools</project>
                    <description></description>
                <environment>&lt;p&gt;Operating System: All&lt;br/&gt;
Platform: All&lt;/p&gt;</environment>
        <key id="23089">YANGTOOLS-669</key>
            <summary>[Yang 1.1] Support for &quot;require-instance&quot; in leafref</summary>
                <type id="10104" iconUrl="https://jira.opendaylight.org/secure/viewavatar?size=xsmall&amp;avatarId=10303&amp;avatarType=issuetype">Bug</type>
                                                <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="ifoltin">Igor Foltin</assignee>
                                    <reporter username="pkajsa">Peter Kajsa</reporter>
                        <labels>
                    </labels>
                <created>Thu, 6 Oct 2016 08:24:08 +0000</created>
                <updated>Sun, 10 Apr 2022 18:35:52 +0000</updated>
                            <resolved>Fri, 14 Jul 2017 15:33:29 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>4</watches>
                                                                                                                <comments>
                            <comment id="44143" author="martin.ciglan" created="Wed, 19 Oct 2016 11:43:10 +0000"  >&lt;p&gt;RFC7950:&lt;/p&gt;

&lt;p&gt;9.9.3. The &quot;require-instance&quot; Statement&lt;br/&gt;
 The &quot;require-instance&quot; statement, which is a substatement to the&lt;br/&gt;
 &quot;type&quot; statement, MAY be present if the type is &quot;instance-identifier&quot;&lt;br/&gt;
 or &quot;leafref&quot;. It takes as an argument the string &quot;true&quot; or &quot;false&quot;.&lt;br/&gt;
 If this statement is not present, it defaults to &quot;true&quot;.&lt;br/&gt;
 If &quot;require-instance&quot; is &quot;true&quot;, it means that the instance being&lt;br/&gt;
 referred to MUST exist for the data to be valid. This constraint is&lt;br/&gt;
 enforced according to the rules in Section 8 of RFC7950.&lt;br/&gt;
 If &quot;require-instance&quot; is &quot;false&quot;, it means that the instance being&lt;br/&gt;
 referred to MAY exist in valid data.&lt;/p&gt;</comment>
                            <comment id="44144" author="ifoltin" created="Sun, 6 Nov 2016 13:21:24 +0000"  >&lt;p&gt;API change - &lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/47983/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/47983/&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="44145" author="ifoltin" created="Wed, 21 Dec 2016 13:14:34 +0000"  >&lt;p&gt;Implementation - &lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/49697/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/49697/&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="44146" author="giheron@cisco.com" created="Fri, 14 Jul 2017 15:33:29 +0000"  >&lt;p&gt;when mounting XR 6.2.1 in Boron the openconfig-bgp model is mounted correctly.&lt;/p&gt;

&lt;p&gt;when mounting XR 6.2.1 in Carbon this fails.&lt;/p&gt;

&lt;p&gt;It turns out to be because the model has a leafref with a require-instance under it.  This is ambiguous in RFC6020 (YANG 1.0) in that it&apos;s not mentioned in the text but is permitted in the ABNF, but is unambiguous in RFC7950 (present in both text and ABNF).   The fix was as simple as side-loading a modified model with yang-version set to &quot;1.1&quot;.&lt;/p&gt;

&lt;p&gt;but WHY OH WHY did you change the code in Carbon to explicitly prevent this from working unless yang-version is set to 1.1?   It breaks things that previously worked and it goes against Postel&apos;s law.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10000">
                    <name>Blocks</name>
                                            <outwardlinks description="blocks">
                                        <issuelink>
            <issuekey id="22775">YANGTOOLS-355</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is blocked by">
                                        <issuelink>
            <issuekey id="23084">YANGTOOLS-664</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="23119">YANGTOOLS-699</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_10208" key="com.atlassian.jira.plugin.system.customfieldtypes:textfield">
                        <customfieldname>External issue ID</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>6873</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10201" key="com.atlassian.jira.plugin.system.customfieldtypes:url">
                        <customfieldname>External issue URL</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[https://bugs.opendaylight.org/show_bug.cgi?id=6873]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10206" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Issue Type</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10308"><![CDATA[New Feature]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10204" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>ODL SR Target Milestone</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10346"><![CDATA[Carbon-M4]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                    <customfield id="customfield_10000" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|i028nj:</customfieldvalue>

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