<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 19:52:32 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>[CONTROLLER-241] Topology data change event does not provide link removal data</title>
                <link>https://jira.opendaylight.org/browse/CONTROLLER-241</link>
                <project id="10113" key="CONTROLLER">controller</project>
                    <description>&lt;p&gt;I am trying to listen to MD-SAL topology changes, specifically creation and removal of links. &lt;/p&gt;

&lt;p&gt;I register my listener for Links like following  - &lt;/p&gt;

&lt;p&gt;dataService.registerDataChangeListener(&lt;br/&gt;
            InstanceIdentifier.builder(NetworkTopology.class).child(Topology.class, new TopologyKey(new TopologyId(&quot;flow:1&quot;)))&lt;br/&gt;
            .child(Link.class).toInstance(), new TopologyListener()); &lt;/p&gt;

&lt;p&gt;Where my TopologyListener class, which implements DataChangeListener looks like following - &lt;/p&gt;

&lt;p&gt;public class TopologyListener implements DataChangeListener{&lt;/p&gt;

&lt;p&gt;  @Override&lt;br/&gt;
  public void onDataChanged(&lt;br/&gt;
      DataChangeEvent&amp;lt;InstanceIdentifier&amp;lt;?&amp;gt;, DataObject&amp;gt; change) &lt;/p&gt;
{
Map&amp;lt;InstanceIdentifier&amp;lt;?&amp;gt;, DataObject&amp;gt; linkCreated = change.getCreatedOperationalData();
        Set&amp;lt;InstanceIdentifier&amp;lt;?&amp;gt;&amp;gt; linkRemoved = change.getRemovedOperationalData();
  }

&lt;p&gt;Now, when a link is removed, change.getRemovedOperationalData()  does not have data, its empty Set. &lt;/p&gt;

&lt;p&gt;It should have removed link data&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: Mac OS&lt;br/&gt;
Platform: PC&lt;/p&gt;</environment>
        <key id="24795">CONTROLLER-241</key>
            <summary>Topology data change event does not provide link removal data</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="-1">Unassigned</assignee>
                                    <reporter username="harmasin@cisco.com">Harman Singh</reporter>
                        <labels>
                    </labels>
                <created>Fri, 28 Mar 2014 18:13:04 +0000</created>
                <updated>Thu, 19 Oct 2017 22:13:19 +0000</updated>
                            <resolved>Tue, 8 Apr 2014 15:56:34 +0000</resolved>
                                    <version>0.4.0</version>
                                                    <component>mdsal</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="47828" author="tony.tkacik@gmail.com" created="Wed, 2 Apr 2014 08:11:09 +0000"  >&lt;p&gt;Are you able to see the link in restconf after removal?&lt;/p&gt;</comment>
                            <comment id="47829" author="harmasin@cisco.com" created="Wed, 2 Apr 2014 16:44:48 +0000"  >&lt;p&gt;No, link is not present in topology restconf. Its just the data change event, does not give removed link information&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10002">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="24774">CONTROLLER-220</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </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>605</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=605]]></customfieldvalue>

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

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