<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 19:53:15 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-531] Can&apos;t detect switch disconnection</title>
                <link>https://jira.opendaylight.org/browse/CONTROLLER-531</link>
                <project id="10113" key="CONTROLLER">controller</project>
                    <description>&lt;p&gt;To detect when a switch disconnects, I register a datachangelistener on InstanceIdentifier.builder(Nodes.class).child(Node.class).augmentation(FlowCapableNode.class)&lt;/p&gt;

&lt;p&gt;Then I get the set from changeEvent.getRemovedOperationalData() and see if it is a FlowCapableNode. If it is, I take that to mean the node has disconnected.&lt;/p&gt;

&lt;p&gt;This was working in builds from April but is no longer working. I&apos;m not getting any notifications when a switch disconnects.&lt;/p&gt;

&lt;p&gt;Here are some code snippets:&lt;/p&gt;

&lt;p&gt;dataChangeListenerRegistration = dataBrokerService.registerDataChangeListener(InstanceIdentifier.builder(Nodes.class)&lt;br/&gt;
    .child(Node.class)&lt;br/&gt;
    .toInstance(),&lt;br/&gt;
    this);&lt;/p&gt;

&lt;p&gt;final Set&amp;lt;InstanceIdentifier&amp;lt;?&amp;gt;&amp;gt; removedSet = changeEvent.getRemovedOperationalData();&lt;/p&gt;

&lt;p&gt;for (final InstanceIdentifier&amp;lt;?&amp;gt; removedItemPath : removedSet)&lt;br/&gt;
      {&lt;br/&gt;
         final InstanceIdentifier&amp;lt;Node&amp;gt; switchPath = IIDUtil.getSwitchPath(removedItemPath);&lt;br/&gt;
         final Class removedClass = removedItemPath.getTargetType();&lt;br/&gt;
         final String className = removedClass.getSimpleName();&lt;br/&gt;
         log.debug(&quot;Removed: {}&quot;, className);&lt;/p&gt;

&lt;p&gt;         if (className.contains(&quot;FlowCapableNode&quot;))&lt;br/&gt;
         {&lt;br/&gt;
            log.debug(&quot;REMOVED SWITCH: switch{}&quot;, IIDUtil.getSwitchId(switchPath));&lt;br/&gt;
         }&lt;br/&gt;
     }&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: Windows&lt;br/&gt;
Platform: PC&lt;/p&gt;</environment>
        <key id="25085">CONTROLLER-531</key>
            <summary>Can&apos;t detect switch disconnection</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="tony.tkacik@gmail.com">Tony Tkacik</assignee>
                                    <reporter username="jimoo99@hotmail.com">Jim O</reporter>
                        <labels>
                    </labels>
                <created>Mon, 2 Jun 2014 19:16:14 +0000</created>
                <updated>Tue, 25 Jul 2023 08:23:49 +0000</updated>
                            <resolved>Tue, 15 Jul 2014 08:56:29 +0000</resolved>
                                                                    <component>mdsal</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>4</watches>
                                                                                                                <comments>
                            <comment id="48454" author="hagbard@gmail.com" created="Tue, 3 Jun 2014 16:43:14 +0000"  >&lt;p&gt;This may or may not be an MD-SAL issue... hard to say.  The simplest way to approach it would be to:&lt;/p&gt;

&lt;p&gt;a)  Create a unit test to write an operational node, remove it, and see if the datachange listener fires.&lt;br/&gt;
b)  If the unit test passes, drill down into topology-manager and ofplugin to find the origin of the issue.&lt;/p&gt;</comment>
                            <comment id="48455" author="tony.tkacik@gmail.com" created="Mon, 14 Jul 2014 11:41:46 +0000"  >&lt;p&gt;Tried to replicate with current master, seems to work,&lt;br/&gt;
added regresion test suite with listeenr attached to&lt;br/&gt;
augmentation, all delete scenarios works (top-level element,&lt;br/&gt;
list item or augmentation).&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://bugs.opendaylight.org/show_bug.cgi?id=1125&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://bugs.opendaylight.org/show_bug.cgi?id=1125&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>1125</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=1125]]></customfieldvalue>

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

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