<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:08:50 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>[MDSAL-168] Augmenting a choice without a case results in no getter/setter</title>
                <link>https://jira.opendaylight.org/browse/MDSAL-168</link>
                <project id="10137" key="MDSAL">mdsal</project>
                    <description>&lt;p&gt;See also &lt;a href=&quot;https://jira.opendaylight.org/browse/MDSAL-133&quot; title=&quot;Augmenting a choice without a case from another module causes NPE&quot; class=&quot;issue-link&quot; data-issue-key=&quot;MDSAL-133&quot;&gt;&lt;del&gt;MDSAL-133&lt;/del&gt;&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;We have the following augments in a model (&lt;a href=&quot;https://git.opendaylight.org/gerrit/gitweb?p=lispflowmapping.git;a=blob;f=mappingservice/lisp-proto/src/main/yang/odl-lisp-address-types.yang;h=2637ebc222fb6b58eb907b2fd6f346ca1a7e3c37;hb=HEAD):&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/gitweb?p=lispflowmapping.git;a=blob;f=mappingservice/lisp-proto/src/main/yang/odl-lisp-address-types.yang;h=2637ebc222fb6b58eb907b2fd6f346ca1a7e3c37;hb=HEAD):&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;    grouping augmented-lisp-address {&lt;br/&gt;
        uses laddr:lisp-address {&lt;br/&gt;
            augment &quot;address&quot; {&lt;br/&gt;
                leaf ipv4-binary {&lt;br/&gt;
                    when &quot;../../address-type = &apos;ipv4-binary-afi&apos;&quot; &lt;/p&gt;
{
                      description
                        &quot;When AFI is IPv4 (binary).&quot;;
                    }
&lt;p&gt;                    type bin:ipv4-address-binary;&lt;br/&gt;
                    description&lt;br/&gt;
                      &quot;IPv4 (binary) address.&quot;;&lt;br/&gt;
                }&lt;br/&gt;
                leaf ipv6-binary {&lt;br/&gt;
                    when &quot;../../address-type = &apos;ipv6-binary-afi&apos;&quot; &lt;/p&gt;
{
                      description
                        &quot;When AFI is IPv6 (binary).&quot;;
                    }
&lt;p&gt;                    type bin:ipv6-address-binary;&lt;br/&gt;
                    description&lt;br/&gt;
                      &quot;IPv6 (binary) address.&quot;;&lt;br/&gt;
                }&lt;br/&gt;
            }&lt;br/&gt;
        }&lt;br/&gt;
    }&lt;/p&gt;

&lt;p&gt;The &quot;address&quot; that is augmented is a choice, that doesn&apos;t have &apos;case&apos; statements.&lt;/p&gt;

&lt;p&gt;The yangtools generated Ipv&lt;/p&gt;
{4,6}Binary and objects don&apos;t have any getter method to access the leaf value, and the Ipv{4,6}
&lt;p&gt;BinaryBuilder object can&apos;t set or get the leaf either. Looking at the comment at the top of the auto-generated Java classes, and comparing it to the non-augmented counterparts reveals that the latter seem to add a &apos;case&apos; statement to the YANG snippet, even if the original model doesn&apos;t have it. Manually adding a &apos;case&apos; to the above augment solves the problem, and getters/setters become available.&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: All&lt;br/&gt;
Platform: All&lt;/p&gt;</environment>
        <key id="26990">MDSAL-168</key>
            <summary>Augmenting a choice without a case results in no getter/setter</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="filip.gregor@pantheon.tech">Filip Gregor</assignee>
                                    <reporter username="ljakab">Lori Jakab</reporter>
                        <labels>
                    </labels>
                <created>Fri, 13 May 2016 07:42:23 +0000</created>
                <updated>Fri, 9 Mar 2018 18:00:15 +0000</updated>
                            <resolved>Mon, 25 Jul 2016 06:24:21 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>4</watches>
                                                                                                                <comments>
                            <comment id="54327" author="filip.gregor@pantheon.tech" created="Tue, 14 Jun 2016 09:07:10 +0000"  >&lt;p&gt;Proposed fix: &lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/40158/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/40158/&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="54328" author="rovarga" created="Thu, 7 Jul 2016 08:27:43 +0000"  >&lt;p&gt;Needs manual cherry-pick to Beryllium&lt;/p&gt;</comment>
                    </comments>
                    <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>5884</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=5884]]></customfieldvalue>

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

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

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

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