<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:52:16 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-101] YANG Enumeration type is not handled.</title>
                <link>https://jira.opendaylight.org/browse/YANGTOOLS-101</link>
                <project id="10188" key="YANGTOOLS">yangtools</project>
                    <description>&lt;p&gt;2014-03-13 15:12:35 PDT [org.apache.catalina.core.ContainerBase.&lt;span class=&quot;error&quot;&gt;&amp;#91;Catalina&amp;#93;&lt;/span&gt;.&lt;span class=&quot;error&quot;&gt;&amp;#91;localhost&amp;#93;&lt;/span&gt;.&lt;span class=&quot;error&quot;&gt;&amp;#91;/restconf&amp;#93;&lt;/span&gt;.&lt;span class=&quot;error&quot;&gt;&amp;#91;JAXRSRestconf&amp;#93;&lt;/span&gt;] SEVERE org.apache.catalina.core.StandardWrapperValve invoke Servlet.service() for servlet &lt;span class=&quot;error&quot;&gt;&amp;#91;JAXRSRestconf&amp;#93;&lt;/span&gt; in context with path &lt;span class=&quot;error&quot;&gt;&amp;#91;/restconf&amp;#93;&lt;/span&gt; threw exception [java.util.concurrent.ExecutionException: java.lang.IllegalStateException: &lt;br/&gt;
If a YANG Model contains a leaf of type enumeration, like this:&lt;/p&gt;

&lt;p&gt; leaf node-connector-type {&lt;br/&gt;
        type enumeration {&lt;br/&gt;
          enum &quot;CTRL&quot; &lt;/p&gt;
{
            value 0;
            description
              &quot;Represents the OFPP_CONTROLLER reserved port to forward a
                packet to the controller, this is to send data packets
                to the controller from the data plane triggering
                a packet_in event.&quot;;
          }
&lt;p&gt;          enum &quot;ALL&quot; &lt;/p&gt;
{
            value 1;
            description
              &quot;Represents the OFPP_ALL reserved OF port
                to forward to ALL the ports in the system ,
                should be used for flooding like mechanism to
                be used cautiously to avoid excessive flooding.&quot;;
          }

&lt;p&gt;And the value is passed in via RestConf as let&apos;s say &quot;ALL&quot;, then YANGTools fails with the following ClassCastException.&lt;/p&gt;


&lt;p&gt;org.opendaylight.yangtools.yang.data.impl.codec.DeserializationException: java.lang.ClassCastException: java.lang.String cannot be cast to org.opendaylight.yang.gen.v1.urn.opendaylight.host.tracker.rev140305.host.NodeConnector$NodeConnectorType] with root cause&lt;br/&gt;
java.lang.ClassCastException: java.lang.String cannot be cast to org.opendaylight.yang.gen.v1.urn.opendaylight.host.tracker.rev140305.host.NodeConnector$NodeConnectorType&lt;br/&gt;
	at org.opendaylight.yang.gen.v1.urn.opendaylight.host.tracker.rev140305.host.NodeConnector$Broker$Codec$DOM.fromDomStatic(NodeConnector$Broker$Codec$DOM.java)&lt;br/&gt;
	at org.opendaylight.yang.gen.v1.urn.opendaylight.host.tracker.rev140305.AddStaticHostInput$Broker$Codec$DOM.fromDomStatic(AddStaticHostInput$Broker$Codec$DOM.java)&lt;br/&gt;
	at org.opendaylight.yang.gen.v1.urn.opendaylight.host.tracker.rev140305.AddStaticHostInput$Broker$Codec$DOM.deserialize(AddStaticHostInput$Broker$Codec$DOM.java)&lt;br/&gt;
	at org.opendaylight.yangtools.sal.binding.generator.impl.LazyGeneratedCodecRegistry$DataContainerCodecImpl.deserialize(LazyGeneratedCodecRegistry.java:629)&lt;br/&gt;
	at org.opendaylight.yangtools.sal.binding.generator.impl.RuntimeGeneratedMappingServiceImpl$11.call(RuntimeGeneratedMappingServiceImpl.java:590)&lt;br/&gt;
	at org.opendaylight.yangtools.sal.binding.generator.impl.RuntimeGeneratedMappingServiceImpl$11.call(RuntimeGeneratedMappingServiceImpl.java:582&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: Mac OS&lt;br/&gt;
Platform: PC&lt;/p&gt;</environment>
        <key id="22521">YANGTOOLS-101</key>
            <summary>YANG Enumeration type is not handled.</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="mayagarw@cisco.com">Mayank Agarwal</assignee>
                                    <reporter username="mayagarw@cisco.com">Mayank Agarwal</reporter>
                        <labels>
                    </labels>
                <created>Thu, 13 Mar 2014 23:30:10 +0000</created>
                <updated>Sun, 10 Apr 2022 18:34:59 +0000</updated>
                            <resolved>Wed, 9 Apr 2014 09:31:08 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                    <issuelinks>
                            <issuelinktype id="10002">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="24723">CONTROLLER-169</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="22547">YANGTOOLS-127</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </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>523</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=523]]></customfieldvalue>

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

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