<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:08: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>[MDSAL-105] Binding-aware code: adding two augmentations to a node does not work</title>
                <link>https://jira.opendaylight.org/browse/MDSAL-105</link>
                <project id="10137" key="MDSAL">mdsal</project>
                    <description>&lt;p&gt;When adding two augmentations to a node, data from the first augmentation does not get written to the data store.&lt;/p&gt;

&lt;p&gt;Consider the attached models and the following code:&lt;/p&gt;

&lt;p&gt;        LOG.info(&quot;*** Writing a host node with TP&quot;);&lt;/p&gt;

&lt;p&gt;        List&amp;lt;TerminationPoint&amp;gt; tpList7 = new ArrayList&amp;lt;TerminationPoint&amp;gt;();&lt;br/&gt;
        TpId tpId7 = new TpId(&quot;tp7&quot;);&lt;br/&gt;
        tpList.add(new TerminationPointBuilder()&lt;br/&gt;
                          .setKey(new TerminationPointKey(tpId7))&lt;br/&gt;
                          .setTpId(tpId7)&lt;br/&gt;
                          .build());&lt;/p&gt;

&lt;p&gt;        Node1 node1_7 = new Node1Builder()&lt;br/&gt;
                            .setTerminationPoint(tpList7)&lt;br/&gt;
                            .build();&lt;/p&gt;

&lt;p&gt;        RemotePrefixKey ipPfxKey = new RemotePrefixKey(new IpPrefix(&quot;10.20.30.40/24&quot;.toCharArray()));&lt;br/&gt;
        RemotePrefix remotePrefix = new RemotePrefixBuilder()&lt;br/&gt;
        						.setPrefix(ipPfxKey.getPrefix())&lt;br/&gt;
        						.setKey(ipPfxKey)&lt;br/&gt;
        						.build();&lt;/p&gt;

&lt;p&gt;        List&amp;lt;RemotePrefix&amp;gt; pfxList = new ArrayList&amp;lt;RemotePrefix&amp;gt;();&lt;br/&gt;
        pfxList.add(remotePrefix);&lt;/p&gt;

&lt;p&gt;        NodeAttributes attr7 = new TypeHostBuilder()&lt;br/&gt;
								.setRemotePrefix(pfxList)&lt;br/&gt;
								.build();&lt;/p&gt;

&lt;p&gt;        Ofl3Node ofl3Node7 = new Ofl3NodeBuilder()&lt;br/&gt;
        						.setNodeAttributes(attr7)&lt;br/&gt;
        						.build();&lt;/p&gt;


&lt;p&gt;        NodeKey key7 = new NodeKey(new NodeId(&quot;hostNode7&quot;));&lt;br/&gt;
        Node node7 = new NodeBuilder()&lt;br/&gt;
                     .setKey(key7)&lt;br/&gt;
                     .addAugmentation(Node1.class, node1_7)&lt;br/&gt;
                     .addAugmentation(Ofl3Node.class, ofl3Node7)&lt;br/&gt;
                     .build();&lt;/p&gt;

&lt;p&gt;        WriteTransaction tx7 = dataBroker.newWriteOnlyTransaction();&lt;br/&gt;
        InstanceIdentifier&amp;lt;Node&amp;gt; node_IID7 = NETWORK_IID.child(Node.class, key7);&lt;br/&gt;
        tx7.put(LogicalDatastoreType.CONFIGURATION, node_IID7, node7, true);&lt;/p&gt;

&lt;p&gt;        try &lt;/p&gt;
{
            tx7.submit().checkedGet();
        }
&lt;p&gt; catch (TransactionCommitFailedException ex) {&lt;br/&gt;
            LOG.error(&quot;Transaction failed: {}&quot;, ex.toString());&lt;br/&gt;
            throw new RuntimeException(ex);&lt;br/&gt;
        }&lt;/p&gt;

&lt;p&gt;when looking at the data store through rest, i see the following data:&lt;/p&gt;

&lt;p&gt;{&lt;br/&gt;
  &quot;network&quot;: [&lt;br/&gt;
    {&lt;br/&gt;
      &quot;network-id&quot;: &quot;test-network&quot;,&lt;br/&gt;
      &quot;node&quot;: [&lt;br/&gt;
        {&lt;br/&gt;
          &quot;node-id&quot;: &quot;hostNode7&quot;,&lt;br/&gt;
          &quot;ofl3-topology:remote-prefix&quot;: [&lt;/p&gt;
            {
              &quot;prefix&quot;: &quot;10.20.30.40/24&quot;
            }
&lt;p&gt;          ]&lt;br/&gt;
        }&lt;br/&gt;
      ]&lt;br/&gt;
    }&lt;br/&gt;
  ]&lt;br/&gt;
}&lt;/p&gt;

&lt;p&gt;This problem appears in lithium&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: All&lt;br/&gt;
Platform: All&lt;/p&gt;</environment>
        <key id="26927">MDSAL-105</key>
            <summary>Binding-aware code: adding two augmentations to a node does not work</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="ifoltin">Igor Foltin</assignee>
                                    <reporter username="jmedved@cisco.com">Jan Medved</reporter>
                        <labels>
                    </labels>
                <created>Thu, 1 Oct 2015 14:33:34 +0000</created>
                <updated>Fri, 9 Mar 2018 18:00:10 +0000</updated>
                            <resolved>Tue, 12 Jan 2016 08:51:54 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>4</watches>
                                                                                                                <comments>
                            <comment id="54173" author="jmedved@cisco.com" created="Thu, 1 Oct 2015 14:33:34 +0000"  >&lt;p&gt;Attachment yang.zip has been added with description: yang models for the broken code&lt;/p&gt;</comment>
                            <comment id="54172" author="ifoltin" created="Thu, 7 Jan 2016 09:27:25 +0000"  >&lt;p&gt;This bug could not be replicated using the code in the comment above. After reading the node from the datastore, both augmentations were there.&lt;/p&gt;

&lt;p&gt;I also could not replicate the bug using the following code - &lt;a href=&quot;http://pastebin.com/V1gLDY2h&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://pastebin.com/V1gLDY2h&lt;/a&gt;.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="13794" name="yang.zip" size="6485" author="jmedved@cisco.com" created="Thu, 1 Oct 2015 14:33:34 +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>4389</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=4389]]></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="10352"><![CDATA[Beryllium-RC0]]></customfieldvalue>

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

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