<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:52:39 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-239] Incorrect generation of inheritance relationship from yang file</title>
                <link>https://jira.opendaylight.org/browse/YANGTOOLS-239</link>
                <project id="10188" key="YANGTOOLS">yangtools</project>
                    <description>&lt;p&gt;When this construction: &lt;br/&gt;
leaf sub-type {&lt;br/&gt;
  type identityref &lt;/p&gt;
{
     base openflow-action:experimenter;
  }
&lt;p&gt;}&lt;br/&gt;
is placed into &apos;module&apos;, &apos;container&apos;, &apos;grouping&apos;, &apos;augment&apos;  node, &lt;br/&gt;
yangtools generate incorrect hierarchy between abstract classes.&lt;/p&gt;

&lt;p&gt;Example:&lt;br/&gt;
Here is hierarchy described placed in yang file:&lt;/p&gt;

&lt;p&gt;    identity action-base &lt;/p&gt;
{
        description &quot;Base identity for action types&quot;;
    }

&lt;p&gt;    identity experimenter &lt;/p&gt;
{
        description &quot;&quot;;
        base action-base;
    }

&lt;p&gt;    leaf sub-type {&lt;br/&gt;
	type identityref &lt;/p&gt;
{
		base experimenter;
	}
&lt;p&gt;}	&lt;/p&gt;

&lt;p&gt;Therefore correct inheritance relationship should be: &apos;Experimenter extends ActionBase&apos;.&lt;br/&gt;
But generated code is as follows: &apos;Experimenter extends BaseIdentity&apos;&lt;br/&gt;
(Generated abstract class (Experimenter.java) looses it&apos;s parent class (ActionBase.java))&lt;br/&gt;
If you comment this part of yang file:&lt;br/&gt;
&quot;leaf sub-type {&lt;br/&gt;
  type identityref &lt;/p&gt;
{
     base openflow-action:experimenter;
  }
&lt;p&gt;}&quot;&lt;br/&gt;
, suddenly generation of inheritance works properly.&lt;/p&gt;

&lt;p&gt;Yang file is attached in attachment.&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: Windows&lt;br/&gt;
Platform: PC&lt;/p&gt;</environment>
        <key id="22659">YANGTOOLS-239</key>
            <summary>Incorrect generation of inheritance relationship from yang file</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="10003">Cannot Reproduce</resolution>
                                        <assignee username="lborak@cisco.com">Ladislav Borak</assignee>
                                    <reporter username="mkasan@cisco.com">Michal Kasan</reporter>
                        <labels>
                    </labels>
                <created>Wed, 30 Jul 2014 13:29:32 +0000</created>
                <updated>Sun, 10 Apr 2022 18:35:12 +0000</updated>
                            <resolved>Thu, 31 Jul 2014 11:05:52 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="42899" author="mkasan@cisco.com" created="Wed, 30 Jul 2014 13:29:32 +0000"  >&lt;p&gt;Attachment toaster.yang has been added with description: yang file as an example&lt;/p&gt;</comment>
                            <comment id="42898" author="lborak@cisco.com" created="Thu, 31 Jul 2014 11:05:52 +0000"  >&lt;p&gt;I tested included yang file with master branch on yangtools and I can&apos;t reproduce this bug. It seems to be all works fine.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="12979" name="toaster.yang" size="698" author="mkasan@cisco.com" created="Wed, 30 Jul 2014 13:29:32 +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_10208" key="com.atlassian.jira.plugin.system.customfieldtypes:textfield">
                        <customfieldname>External issue ID</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1454</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=1454]]></customfieldvalue>

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

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

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