<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:53:09 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-405] Compilation error: grouping address-family and identity address-family both exist in ietf-routing.yang</title>
                <link>https://jira.opendaylight.org/browse/YANGTOOLS-405</link>
                <project id="10188" key="YANGTOOLS">yangtools</project>
                    <description>&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;I tried to generate JAVA class from ietf-routing.yang (see &lt;a href=&quot;http://www.netconfcentral.org/modules/ietf-routing&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://www.netconfcentral.org/modules/ietf-routing&lt;/a&gt;), but the generated classes cannot compile, as follows. &lt;/p&gt;

&lt;p&gt;If you already developed maven artifacts for ietf-routing, please let me know. If not, could you solve the bug? Thanks!&lt;/p&gt;

&lt;p&gt;ietf-routing.yang:&lt;/p&gt;

&lt;p&gt;identity address-family &lt;/p&gt;
{
      description
        &quot;Base identity from which identities describing address
       families are derived.&quot;;
    }

&lt;p&gt;grouping address-family {&lt;br/&gt;
      description&lt;br/&gt;
        &quot;This grouping provides a leaf identifying an address&lt;br/&gt;
       family.&quot;;&lt;br/&gt;
      leaf address-family {&lt;br/&gt;
        type identityref &lt;/p&gt;
{
          base address-family;
        }
&lt;p&gt;        mandatory true;&lt;br/&gt;
        description &quot;Address family.&quot;;&lt;br/&gt;
      }&lt;br/&gt;
    }  // grouping address-family&lt;/p&gt;

&lt;p&gt;identity ipv4 {&lt;br/&gt;
      base address-family;&lt;br/&gt;
      description&lt;br/&gt;
        &quot;This identity represents IPv4 address family.&quot;;&lt;br/&gt;
}&lt;/p&gt;


&lt;p&gt;Please notice there are 2 address-family definitions in ietf-routing.yang, one is identity, the other is grouping, this will cause the problem.&lt;/p&gt;

&lt;p&gt;The generated Ipv4 class extended an interface, so it cannot compile.&lt;/p&gt;

&lt;p&gt;public abstract class Ipv4 extends AddressFamily&lt;br/&gt;
 {&lt;br/&gt;
    public static final QName QNAME = org.opendaylight.yangtools.yang.common.QName.create(&quot;urn:ietf:params:xml:ns:yang:ietf-routing&quot;,&quot;2014-05-24&quot;,&quot;ipv4&quot;);;&lt;/p&gt;

&lt;p&gt;    public Ipv4() {&lt;/p&gt;


&lt;p&gt;    }&lt;br/&gt;
}&lt;/p&gt;

&lt;p&gt;public interface AddressFamily&lt;br/&gt;
    extends&lt;br/&gt;
    DataObject&lt;/p&gt;
{
    public static final QName QNAME = org.opendaylight.yangtools.yang.common.QName.create(&quot;urn:ietf:params:xml:ns:yang:ietf-routing&quot;,&quot;2014-05-24&quot;,&quot;address-family&quot;);;

    /**
     * Address family.
     * 
     */
    java.lang.Class&amp;lt;? extends org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.routing.rev140524.AddressFamily&amp;gt; getAddressFamily();

}</description>
                <environment>&lt;p&gt;Operating System: Linux&lt;br/&gt;
Platform: PC&lt;/p&gt;</environment>
        <key id="22825">YANGTOOLS-405</key>
            <summary>Compilation error: grouping address-family and identity address-family both exist in ietf-routing.yang</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="10002">Duplicate</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="minna.hu@ericsson.com">Minna Hu</reporter>
                        <labels>
                    </labels>
                <created>Thu, 29 Jan 2015 23:39:37 +0000</created>
                <updated>Sun, 10 Apr 2022 18:35:28 +0000</updated>
                            <resolved>Mon, 2 Feb 2015 09:13:44 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="43257" author="tony.tkacik@gmail.com" created="Mon, 2 Feb 2015 09:13:44 +0000"  >&lt;p&gt;this is known problem of Binding Specification v1 (&lt;a href=&quot;https://jira.opendaylight.org/browse/MDSAL-1&quot; title=&quot;Binding Specification: Grouping, data, typedef and identity namespaces collide&quot; class=&quot;issue-link&quot; data-issue-key=&quot;MDSAL-1&quot;&gt;&lt;del&gt;MDSAL-1&lt;/del&gt;&lt;/a&gt;) which could not be addressed&lt;br/&gt;
without potentially breaking existing Binding Specification.&lt;/p&gt;

&lt;p&gt;Unfortunattely this is not fixable as is, without changes of how we generate files, which could potentially affect every code generated, and this will be addressed in version 2 of Binding Specification &lt;br/&gt;
(currently planned for Berilium).&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10002">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="26823">MDSAL-1</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </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>2655</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=2655]]></customfieldvalue>

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

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