<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:08:53 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-177] BA comparison fails when comparing augmentation</title>
                <link>https://jira.opendaylight.org/browse/MDSAL-177</link>
                <project id="10137" key="MDSAL">mdsal</project>
                    <description>&lt;p&gt;We are suffering some issues comparing BA.&lt;/p&gt;

&lt;p&gt;The corresponding model is&lt;/p&gt;

&lt;p&gt;    grouping flowspec-l3vpn-ipv6-routes {&lt;br/&gt;
        container flowspec-l3vpn-ipv6-routes {&lt;br/&gt;
            uses flowspec-ipv6-route {&lt;br/&gt;
                augment &quot;flowspec-route&quot; &lt;/p&gt;
{
                    uses flowspec-l3vpn-rd;
                }
&lt;p&gt;            }&lt;br/&gt;
        }&lt;br/&gt;
    }&lt;/p&gt;

&lt;p&gt;When FlowspecRouteBuilder#Equals &lt;/p&gt;

&lt;p&gt;if (!e.getValue().equals(other.getAugmentation(e.getKey()))) {&lt;/p&gt;

&lt;p&gt;First object contains Route distinguisher as augmentation, meanwhile the other contains it as children, therefore it fails.&lt;/p&gt;


&lt;p&gt;Firs object creation &lt;/p&gt;

&lt;p&gt;ROUTE = new FlowspecRouteBuilder().setKey(ROUTE_KEY)&lt;br/&gt;
.setPathId(PATH_ID).setFlowspec(FLOW_LIST)&lt;br/&gt;
.setAttributes(new AttributesBuilder().build())         &lt;br/&gt;
.addAugmentation(FlowspecRoute1.class, new FlowspecRoute1Builder().setRouteDistinguisher(RD).build()).build();&lt;/p&gt;

&lt;p&gt;Second one is readed from DS and converted using BindingToNormalizedNodeCodec-&amp;gt;fromNormalizedNode&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: All&lt;br/&gt;
Platform: All&lt;/p&gt;</environment>
        <key id="26999">MDSAL-177</key>
            <summary>BA comparison fails when comparing augmentation</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="10001">Won&apos;t Do</resolution>
                                        <assignee username="filip.gregor@pantheon.tech">Filip Gregor</assignee>
                                    <reporter username="cdgasparini">Claudio David Gasparini</reporter>
                        <labels>
                    </labels>
                <created>Mon, 27 Jun 2016 10:08:53 +0000</created>
                <updated>Fri, 9 Mar 2018 18:00:16 +0000</updated>
                            <resolved>Thu, 18 Aug 2016 14:33:52 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="54351" author="cdgasparini" created="Mon, 27 Jun 2016 10:08:53 +0000"  >&lt;p&gt;Attachment BA.txt has been added with description: BA Containers&lt;/p&gt;</comment>
                            <comment id="54350" author="cdgasparini" created="Mon, 11 Jul 2016 07:36:25 +0000"  >
&lt;p&gt;we write to DS  a flowspec-route&lt;/p&gt;

&lt;p&gt;Yii&lt;/p&gt;

&lt;p&gt;/(urn:opendaylight:params:xml:ns:yang:bgp-rib?revision=2013-09-25)bgp-rib/rib/rib[&lt;/p&gt;
{(urn:opendaylight:params:xml:ns:yang:bgp-rib?revision=2013-09-25)id=rib}
&lt;p&gt;]/loc-rib/tables/tables[&lt;/p&gt;
{(urn:opendaylight:params:xml:ns:yang:bgp-rib?revision=2013-09-25)afi=(urn:opendaylight:params:xml:ns:yang:bgp-types?revision=2013-09-19)ipv6-address-family, (urn:opendaylight:params:xml:ns:yang:bgp-rib?revision=2013-09-25)safi=(urn:opendaylight:params:xml:ns:yang:bgp-flowspec?revision=2015-08-07)flowspec-l3vpn-subsequent-address-family}
&lt;p&gt;]/routes/(urn:opendaylight:params:xml:ns:yang:bgp-flowspec?revision=2015-08-07)flowspec-l3vpn-ipv6-routes/flowspec-route/flowspec-route[&lt;/p&gt;
{(urn:opendaylight:params:xml:ns:yang:bgp-flowspec?revision=2015-08-07)path-id=1, (urn:opendaylight:params:xml:ns:yang:bgp-flowspec?revision=2015-08-07)route-key=[l3vpn with route-distinguisher 0:5:3] all packets to 2001:db8:1:2::/64}
&lt;p&gt;]&lt;/p&gt;

&lt;p&gt;MapEntry&lt;/p&gt;

&lt;p&gt;ImmutableMapEntryNode{nodeIdentifier=(urn:opendaylight:params:xml:ns:yang:bgp-flowspec?revision=2015-08-07)flowspec-route[&lt;/p&gt;
{(
urn:opendaylight:params:xml:ns:yang:bgp-flowspec?revision=2015-08-07)path-id=1, 
(urn:opendaylight:params:xml:ns:yang:bgp-flowspec?revision=2015-08-07)route-key=[l3vpn with route-distinguisher 0:5:3] all packets to 2001:db8:1:2::/64}
&lt;p&gt;], value=[&lt;br/&gt;
ImmutableContainerNode{nodeIdentifier=(urn:opendaylight:params:xml:ns:yang:bgp-flowspec?revision=2015-08-07)attributes, value=[], attributes={}}, &lt;br/&gt;
ImmutableLeafNode{nodeIdentifier=(urn:opendaylight:params:xml:ns:yang:bgp-flowspec?revision=2015-08-07)path-id, value=1, attributes={}}, &lt;br/&gt;
ImmutableLeafNode{nodeIdentifier=(urn:opendaylight:params:xml:ns:yang:bgp-flowspec?revision=2015-08-07)route-distinguisher, value=0:5:3, attributes={}}, &lt;br/&gt;
ImmutableUnkeyedListNode{nodeIdentifier=(urn:opendaylight:params:xml:ns:yang:bgp-flowspec?revision=2015-08-07)flowspec, value=[&lt;br/&gt;
ImmutableUnkeyedListEntryNode{nodeIdentifier=(urn:opendaylight:params:xml:ns:yang:bgp-flowspec?revision=2015-08-07)flowspec, value=[&lt;br/&gt;
ImmutableChoiceNode{nodeIdentifier=(urn:opendaylight:params:xml:ns:yang:bgp-flowspec?revision=2015-08-07)flowspec-type, value=[&lt;br/&gt;
ImmutableLeafNode{nodeIdentifier=(urn:opendaylight:params:xml:ns:yang:bgp-flowspec?revision=2015-08-07)destination-prefix, value=2001:db8:1:2::/64, attributes={}}]}], attributes={}}]}, &lt;br/&gt;
ImmutableLeafNode{nodeIdentifier=(urn:opendaylight:params:xml:ns:yang:bgp-flowspec?revision=2015-08-07)route-key, &lt;br/&gt;
value=&lt;span class=&quot;error&quot;&gt;&amp;#91;l3vpn with route-distinguisher 0:5:3&amp;#93;&lt;/span&gt; all packets to 2001:db8:1:2::/64, attributes={}}], attributes={}}&lt;/p&gt;

&lt;p&gt;then we use BindingToNormalizedNodeCodec#fromNormalizedNode to convert to BA and we obtain DataObject&lt;br/&gt;
where we observe that the route is almost the expected one, but there is missing the route-distinguisher as a augmentation&lt;br/&gt;
inside the LazyObject data contains the 5 children with all info, but cacheData instead only contains 4 there is missin route-distinguisher.&lt;/p&gt;

&lt;p&gt;inside context, I see possibleAugmentation -&amp;gt; route-distinguisher.&lt;/p&gt;

&lt;p&gt;So I guess there is some missing step in adding the augmentation to dataCache or where is required, I&apos;m not familiar&lt;br/&gt;
with the  code, so just pointing some posibilities.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10000">
                    <name>Blocks</name>
                                            <outwardlinks description="blocks">
                                        <issuelink>
            <issuekey id="23716">BGPCEP-476</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="13804" name="BA.txt" size="2232" author="claudio.gasparini@pantheon.tech" created="Mon, 27 Jun 2016 10:08:53 +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>6113</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=6113]]></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="10332"><![CDATA[Boron-RC0]]></customfieldvalue>

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

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