<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:08:41 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-121] YANG leaf named &apos;class&apos; breaks write with netconf connector</title>
                <link>https://jira.opendaylight.org/browse/MDSAL-121</link>
                <project id="10137" key="MDSAL">mdsal</project>
                    <description>&lt;p&gt;When using the netconf connector with Cisco-IOS-XR-l2vpn-cfg@2015-01-07.yang and trying to write the following piece of configuration, the &apos;class&apos; leaf causes the request to fail. &lt;/p&gt;

&lt;p&gt;&amp;lt;l2vpn xmlns=&quot;http://cisco.com/ns/yang/Cisco-IOS-XR-l2vpn-cfg&quot;&amp;gt;&lt;br/&gt;
&amp;lt;database&amp;gt;&lt;br/&gt;
&amp;lt;xconnect-groups&amp;gt;&lt;br/&gt;
&amp;lt;xconnect-group&amp;gt;&lt;br/&gt;
&amp;lt;name&amp;gt;GEN15-1000&amp;lt;/name&amp;gt;&lt;br/&gt;
&amp;lt;p2p-xconnects&amp;gt;&lt;br/&gt;
&amp;lt;p2p-xconnect&amp;gt;&lt;br/&gt;
&amp;lt;name&amp;gt;GEN15-p2p-1000&amp;lt;/name&amp;gt;&lt;br/&gt;
&amp;lt;pseudowires&amp;gt;&lt;br/&gt;
&amp;lt;pseudowire&amp;gt;&lt;br/&gt;
&amp;lt;pseudowire-id&amp;gt;2006&amp;lt;/pseudowire-id&amp;gt;&lt;br/&gt;
&amp;lt;neighbor&amp;gt;&lt;br/&gt;
&amp;lt;neighbor&amp;gt;192.168.0.1&amp;lt;/neighbor&amp;gt;&lt;br/&gt;
&amp;lt;class&amp;gt;static&amp;lt;/class&amp;gt;&lt;br/&gt;
&amp;lt;mpls-static-labels&amp;gt;&lt;br/&gt;
&amp;lt;local-static-label&amp;gt;2006&amp;lt;/local-static-label&amp;gt;&lt;br/&gt;
&amp;lt;remote-static-label&amp;gt;2006&amp;lt;/remote-static-label&amp;gt;&lt;br/&gt;
&amp;lt;/mpls-static-labels&amp;gt;&lt;br/&gt;
&amp;lt;/neighbor&amp;gt;&lt;br/&gt;
&amp;lt;/pseudowire&amp;gt;&lt;br/&gt;
&amp;lt;/pseudowires&amp;gt;&lt;br/&gt;
&amp;lt;attachment-circuits&amp;gt;&lt;br/&gt;
&amp;lt;attachment-circuit&amp;gt;&lt;br/&gt;
&amp;lt;name&amp;gt;GigabitEthernet0/0/0/4&amp;lt;/name&amp;gt;&lt;br/&gt;
&amp;lt;enable/&amp;gt;&lt;br/&gt;
&amp;lt;/attachment-circuit&amp;gt;&lt;br/&gt;
&amp;lt;/attachment-circuits&amp;gt;&lt;br/&gt;
&amp;lt;/p2p-xconnect&amp;gt;&lt;br/&gt;
&amp;lt;/p2p-xconnects&amp;gt;&lt;br/&gt;
&amp;lt;/xconnect-group&amp;gt;&lt;br/&gt;
&amp;lt;/xconnect-groups&amp;gt;&lt;br/&gt;
&amp;lt;/database&amp;gt;&lt;br/&gt;
&amp;lt;/l2vpn&amp;gt;&lt;/p&gt;

&lt;p&gt;The following patch fixes the problem, though you may want to refactor it to implement the fix in BindingMapping. This patch is based of mdsal 0.8.0-SNAPSHOT commit 0e377a7bdfd917662d56075fbfd2bdc504d6fcd8 &lt;/p&gt;

&lt;p&gt;diff --git a/binding/mdsal-binding-dom-codec/src/main/java/org/opendaylight/yangtools/binding/data/codec/gen/impl/DataNodeContainerSerializerSource.java b/binding/mdsal-binding-dom-codec/src/main/java/org/opendaylight/yangtools/binding/data/codec/gen/impl/DataNodeContainerSerializerSource.java&lt;br/&gt;
index d9094ac..0c934c8 100644&lt;br/&gt;
&amp;#8212; a/binding/mdsal-binding-dom-codec/src/main/java/org/opendaylight/yangtools/binding/data/codec/gen/impl/DataNodeContainerSerializerSource.java&lt;br/&gt;
+++ b/binding/mdsal-binding-dom-codec/src/main/java/org/opendaylight/yangtools/binding/data/codec/gen/impl/DataNodeContainerSerializerSource.java&lt;br/&gt;
@@ -124,8 +124,8 @@ abstract class DataNodeContainerSerializerSource extends DataObjectSerializerSou&lt;br/&gt;
                 prefix = &quot;is&quot;;&lt;br/&gt;
             }&lt;br/&gt;
         }&lt;br/&gt;
-&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;return prefix + BindingMapping.getClassName(node.getQName().getLocalName());&lt;br/&gt;
+        final String potential = BindingMapping.getClassName(node.getQName().getLocalName());&lt;br/&gt;
+        return prefix + (&quot;Class&quot;.equals(potential) ? &quot;XmlClass&quot; : potential);&lt;br/&gt;
     }&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;     private void emitBody(final StringBuilder b) &lt;/p&gt;
{
diff --git a/binding/mdsal-binding-dom-codec/src/main/java/org/opendaylight/yangtools/binding/data/codec/impl/BindingCodecContext.java b/binding/mdsal-binding-dom-codec/src/main/java/org/opendaylight/yangtools/binding/data/codec/impl/BindingCodecContext.java
index 6e05628..152e3f8 100644
--- a/binding/mdsal-binding-dom-codec/src/main/java/org/opendaylight/yangtools/binding/data/codec/impl/BindingCodecContext.java
+++ b/binding/mdsal-binding-dom-codec/src/main/java/org/opendaylight/yangtools/binding/data/codec/impl/BindingCodecContext.java
@@ -238,7 +238,8 @@ final class BindingCodecContext implements CodecContextFactory, BindingCodecTree
     }

&lt;p&gt;     private String getGetterName(final QName qName, TypeDefinition&amp;lt;?&amp;gt; typeDef) {&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;final String suffix = BindingMapping.getClassName(qName);&lt;br/&gt;
+        final String candidate = BindingMapping.getClassName(qName);&lt;br/&gt;
+        final String suffix = (&quot;Class&quot;.equals(candidate) ? &quot;XmlClass&quot; : candidate);&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;         while (typeDef.getBaseType() != null) {&lt;br/&gt;
             typeDef = typeDef.getBaseType();&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: Mac OS&lt;br/&gt;
Platform: Macintosh&lt;/p&gt;</environment>
        <key id="26943">MDSAL-121</key>
            <summary>YANG leaf named &apos;class&apos; breaks write with netconf connector</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="filip.gregor@pantheon.tech">Filip Gregor</assignee>
                                    <reporter username="donaldh@cisco.com">Donald Hunter</reporter>
                        <labels>
                    </labels>
                <created>Fri, 11 Dec 2015 10:31:38 +0000</created>
                <updated>Fri, 9 Mar 2018 18:00:11 +0000</updated>
                            <resolved>Thu, 12 May 2016 21:53:12 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>4</watches>
                                                                                                                <comments>
                            <comment id="54213" author="tony.tkacik@gmail.com" created="Wed, 9 Mar 2016 12:30:44 +0000"  >&lt;p&gt;&lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/35968/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/35968/&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="54214" author="rovarga" created="Thu, 12 May 2016 21:53:12 +0000"  >&lt;p&gt;Be: &lt;a href=&quot;https://git.opendaylight.org/gerrit/36134&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/36134&lt;/a&gt;&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>4760</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=4760]]></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="10341"><![CDATA[Beryllium-3]]></customfieldvalue>

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

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