<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:53:06 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-385] Union objects are generated incorrectly when using bits type</title>
                <link>https://jira.opendaylight.org/browse/YANGTOOLS-385</link>
                <project id="10188" key="YANGTOOLS">yangtools</project>
                    <description>&lt;p&gt;I have defined following model:&lt;/p&gt;

&lt;p&gt;    typedef port-state-v13 {&lt;br/&gt;
        description &lt;br/&gt;
            &quot;Current state of the physical port. These are not configurable from&lt;br/&gt;
            the controller.&quot;;&lt;br/&gt;
        type bits {&lt;br/&gt;
            bit link_down &lt;/p&gt;
{
                //description &quot;No physical link present.&quot;;
                position 0;
            }
&lt;p&gt;            bit blocked &lt;/p&gt;
{
                //description &quot;Port is blocked&quot;;
                position 1;
            }
&lt;p&gt;            bit live &lt;/p&gt;
{
                //description &quot;Live for Fast Failover Group.&quot;;
                position 2;
            }
&lt;p&gt;        }&lt;br/&gt;
    }&lt;/p&gt;

&lt;p&gt;    typedef port-state-v10 {&lt;br/&gt;
        description &quot;Current state of the physical port. These are not configurable from&lt;br/&gt;
                    the controller.&quot;;&lt;br/&gt;
        type bits {&lt;br/&gt;
            bit link_down &lt;/p&gt;
{
                description &quot;No physical link present.&quot;;
                position 0;
            }
&lt;p&gt;            bit blocked &lt;/p&gt;
{
                description &quot;Port is blocked&quot;;
                position 1;
            }
&lt;p&gt;            bit live &lt;/p&gt;
{
                description &quot;Live for Fast Failover Group.&quot;;
                position 2;
            }
&lt;p&gt;            bit stp_listen &lt;/p&gt;
{
                description &quot;Not learning or relaying frames.&quot;;
            }
&lt;p&gt;            bit stp_learn &lt;/p&gt;
{
                description &quot;Learning but not relaying frames.&quot;;
            }
&lt;p&gt;            bit stp_forward &lt;/p&gt;
{
                description &quot;Learning and relaying frames.&quot;;
            }
&lt;p&gt;            bit stp_block &lt;/p&gt;
{
                description &quot;Not part of spanning tree.&quot;;
            }
&lt;p&gt;            bit stp_mask &lt;/p&gt;
{
                description &quot;Bit mask for OFPPS_STP_* values.&quot;;
            }
&lt;p&gt;        }&lt;br/&gt;
    }&lt;/p&gt;

&lt;p&gt;    typedef port-state {&lt;br/&gt;
        type union &lt;/p&gt;
{
            type port-state-v10;
            type port-state-v13;
        }
&lt;p&gt;    }&lt;/p&gt;

&lt;p&gt;Code generation succeeds, but compilation of PortState object fails due to incorrect method call:&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: All&lt;br/&gt;
Platform: All&lt;/p&gt;</environment>
        <key id="22805">YANGTOOLS-385</key>
            <summary>Union objects are generated incorrectly when using bits type</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="martin.ciglan">Martin Ciglan</assignee>
                                    <reporter username="michal.polkorab@gmail.com">Michal Polkorab</reporter>
                        <labels>
                    </labels>
                <created>Fri, 5 Dec 2014 08:13:03 +0000</created>
                <updated>Sun, 10 Apr 2022 18:35:26 +0000</updated>
                            <resolved>Fri, 23 Jan 2015 07:09:36 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>6</watches>
                                                                                                                <comments>
                            <comment id="43223" author="martin.ciglan" created="Fri, 5 Dec 2014 08:48:11 +0000"  >&lt;p&gt;replicated, will take a look next week&lt;/p&gt;</comment>
                            <comment id="43224" author="martin.ciglan" created="Wed, 10 Dec 2014 13:43:55 +0000"  >&lt;p&gt;fix pushed:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/13535/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/13535/&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="43225" author="jgloncak" created="Thu, 11 Dec 2014 07:18:34 +0000"  >&lt;p&gt;Just for completion. Problem was that class generated for typedef port-state was generated with constructors which expect that attribute _value is filled via calling of method getValue(). Such method currently isn&apos;t generated for &amp;gt;&amp;gt;bit&amp;lt;&amp;lt; type and therefore compilation error has occured.&lt;/p&gt;</comment>
                            <comment id="43226" author="george.y.zhao@huawei.com" created="Mon, 19 Jan 2015 23:24:08 +0000"  >&lt;p&gt;move to Lithium&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>2480</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=2480]]></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="10315"><![CDATA[Lithium]]></customfieldvalue>

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

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