<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:09:03 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-209] Could not find Choice node parent AbsoluteSchemaPath</title>
                <link>https://jira.opendaylight.org/browse/MDSAL-209</link>
                <project id="10137" key="MDSAL">mdsal</project>
                    <description>&lt;p&gt;I get a Error when trying to parse a yang file like below:&lt;br/&gt;
    choice pool-type {&lt;br/&gt;
        container interface-pool {&lt;br/&gt;
            leaf dddd &lt;/p&gt;
{
                type string;
            }
&lt;p&gt;            list sub-option {&lt;br/&gt;
                description &quot;Specifieds the user defined DHCP sub options&quot;;&lt;br/&gt;
                key sub-option-code;&lt;/p&gt;

&lt;p&gt;                leaf sub-option-code {&lt;br/&gt;
                    description &quot;The sub option code of the user defined option&quot;;&lt;br/&gt;
                    type uint8 &lt;/p&gt;
{
                        range &quot;1..254&quot;;
                    }
&lt;p&gt;                }&lt;br/&gt;
                choice option-format {&lt;br/&gt;
                    leaf-list ip-address &lt;/p&gt;
{
                        description &quot;IP address list&quot;;
                        type string;
                    }
&lt;p&gt;                }&lt;br/&gt;
            }&lt;br/&gt;
        }&lt;br/&gt;
    }&lt;/p&gt;

&lt;p&gt;the error is:&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;ERROR&amp;#93;&lt;/span&gt; yang-to-sources: Unable to generate sources with org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl generator&lt;br/&gt;
java.lang.IllegalStateException: Could not find Choice node parent AbsoluteSchemaPath&lt;/p&gt;
{path=[(com:huawei:controller:application:test?revision=2016-07-12)pool-type, (com:huawei:controller:application:test?revision=2016-07-12)interface-pool, (com:huawei:controller:application:test?revision=2016-07-12)sub-option]}
&lt;p&gt;	at com.google.common.base.Preconditions.checkState(Preconditions.java:197)&lt;br/&gt;
...&lt;/p&gt;

&lt;p&gt;Why compilation of this yang failure?&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: All&lt;br/&gt;
Platform: All&lt;/p&gt;</environment>
        <key id="27031">MDSAL-209</key>
            <summary>Could not find Choice node parent AbsoluteSchemaPath</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="-1">Unassigned</assignee>
                                    <reporter username="zhuweisheng@huawei.com">zhuweisheng</reporter>
                        <labels>
                    </labels>
                <created>Mon, 28 Nov 2016 08:48:11 +0000</created>
                <updated>Fri, 9 Mar 2018 18:00:17 +0000</updated>
                            <resolved>Thu, 22 Dec 2016 12:50:35 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="54517" author="pkajsa" created="Mon, 28 Nov 2016 12:05:49 +0000"  >&lt;p&gt;It seems to be a binding generator issue, so moved to mdsal.&lt;/p&gt;</comment>
                            <comment id="54518" author="martin.ciglan" created="Mon, 28 Nov 2016 14:42:38 +0000"  >&lt;p&gt;Hi&lt;/p&gt;

&lt;p&gt;I am able to generate Java files without any issues. As far as I haven&apos;t got more information from you, my pool-type choice sits in root of model.&lt;/p&gt;

&lt;p&gt;Please answer 2 questions:&lt;br/&gt;
1. What ODL version are you using? Beryllium, Boron, Carbon (master) ?&lt;br/&gt;
2. Provide full model - where is pool-type choice?&lt;/p&gt;

&lt;p&gt;Regards&lt;/p&gt;

&lt;p&gt;     Martin&lt;/p&gt;</comment>
                            <comment id="54519" author="zhuweisheng@huawei.com" created="Tue, 29 Nov 2016 05:25:52 +0000"  >&lt;p&gt;(In reply to Martin Ciglan from comment #2)&lt;br/&gt;
&amp;gt; Hi&lt;br/&gt;
&amp;gt; &lt;br/&gt;
&amp;gt; I am able to generate Java files without any issues. As far as I haven&apos;t got&lt;br/&gt;
&amp;gt; more information from you, my pool-type choice sits in root of model.&lt;br/&gt;
&amp;gt; &lt;br/&gt;
&amp;gt; Please answer 2 questions:&lt;br/&gt;
&amp;gt; 1. What ODL version are you using? Beryllium, Boron, Carbon (master) ?&lt;br/&gt;
&amp;gt; 2. Provide full model - where is pool-type choice?&lt;br/&gt;
&amp;gt; &lt;br/&gt;
&amp;gt; Regards&lt;br/&gt;
&amp;gt; &lt;br/&gt;
&amp;gt;      Martin&lt;/p&gt;

&lt;p&gt;1. ODL version is Lithium-SR1.&lt;br/&gt;
2. This is full model.&lt;/p&gt;

&lt;p&gt;Regards&lt;/p&gt;</comment>
                            <comment id="54520" author="martin.ciglan" created="Tue, 29 Nov 2016 06:54:40 +0000"  >&lt;p&gt;Hi&lt;/p&gt;

&lt;p&gt;Lithium and Beryylium are not supported anymore, so I recommend to switch to&lt;br/&gt;
Boron SR1. Let me know results, I tested it with Carbon master and there is no issue. Quite a lot of bugs with code generator have been fixed in Berylliumn SRs, so Boron should be the best for you. Thanks.&lt;/p&gt;</comment>
                            <comment id="54521" author="zhuweisheng@huawei.com" created="Tue, 29 Nov 2016 11:43:19 +0000"  >&lt;p&gt;(In reply to Martin Ciglan from comment #4)&lt;br/&gt;
&amp;gt; Hi&lt;br/&gt;
&amp;gt; &lt;br/&gt;
&amp;gt; Lithium and Beryylium are not supported anymore, so I recommend to switch to&lt;br/&gt;
&amp;gt; Boron SR1. Let me know results, I tested it with Carbon master and there is&lt;br/&gt;
&amp;gt; no issue. Quite a lot of bugs with code generator have been fixed in&lt;br/&gt;
&amp;gt; Berylliumn SRs, so Boron should be the best for you. Thanks.&lt;/p&gt;

&lt;p&gt;Thank you very much.&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>7249</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=7249]]></customfieldvalue>

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

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