<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 19:53:26 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-602] Cannot publish LinkDiscovered event</title>
                <link>https://jira.opendaylight.org/browse/CONTROLLER-602</link>
                <project id="10113" key="CONTROLLER">controller</project>
                    <description>&lt;p&gt;java.lang.NumberFormatException: For input string: &quot;172.16.1.56&quot;&lt;br/&gt;
	at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) ~&lt;span class=&quot;error&quot;&gt;&amp;#91;na:1.7.0_51&amp;#93;&lt;/span&gt;&lt;br/&gt;
	at java.lang.Integer.parseInt(Integer.java:492) ~&lt;span class=&quot;error&quot;&gt;&amp;#91;na:1.7.0_51&amp;#93;&lt;/span&gt;&lt;br/&gt;
	at java.lang.Short.parseShort(Short.java:117) ~&lt;span class=&quot;error&quot;&gt;&amp;#91;na:1.7.0_51&amp;#93;&lt;/span&gt;&lt;br/&gt;
	at java.lang.Short.valueOf(Short.java:173) ~&lt;span class=&quot;error&quot;&gt;&amp;#91;na:1.7.0_51&amp;#93;&lt;/span&gt;&lt;br/&gt;
	at java.lang.Short.valueOf(Short.java:199) ~&lt;span class=&quot;error&quot;&gt;&amp;#91;na:1.7.0_51&amp;#93;&lt;/span&gt;&lt;br/&gt;
	at org.opendaylight.controller.sal.compatibility.topology.TopologyMapping.toADNodeConnector(TopologyMapping.java:103) ~&lt;span class=&quot;error&quot;&gt;&amp;#91;na:na&amp;#93;&lt;/span&gt;&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: Mac OS&lt;br/&gt;
Platform: PC&lt;/p&gt;</environment>
        <key id="25156">CONTROLLER-602</key>
            <summary>Cannot publish LinkDiscovered event</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="jhajnar@cisco.com">Jan Hajnar</assignee>
                                    <reporter username="kjarrad@cisco.com">Ken Jarrad</reporter>
                        <labels>
                    </labels>
                <created>Fri, 4 Jul 2014 17:25:15 +0000</created>
                <updated>Tue, 25 Jul 2023 08:23:58 +0000</updated>
                            <resolved>Tue, 5 May 2015 15:17:28 +0000</resolved>
                                                                    <component>adsal</component>
                        <due>Mon, 22 Sep 2014 00:00:00 +0000</due>
                            <votes>0</votes>
                                    <watches>4</watches>
                                                                                                                <comments>
                            <comment id="48635" author="kjarrad@cisco.com" created="Fri, 4 Jul 2014 17:29:38 +0000"  >&lt;p&gt;I was able to publish LinkDiscovered via NotificationService only a day or two earlier. Maybe I&apos;m doing it differently now or maybe someone changed something.&lt;/p&gt;

&lt;p&gt;final LinkDiscoveredBuilder ldb = new LinkDiscoveredBuilder();&lt;br/&gt;
final String nodeUriPrefix = &quot;opendaylight-inventory:nodes/node/&quot;;&lt;br/&gt;
NodeId dstNodeId = new NodeId(nodeUriPrefix + edge.getTailNode().getName());&lt;br/&gt;
NodeConnectorId dstNodeConnectorId = new NodeConnectorId(edge.getTailNodeConnector().getAddressList().get(0).getHostAddress());&lt;br/&gt;
InstanceIdentifier&amp;lt;NodeConnector&amp;gt; dstInstanceId = InstanceIdentifier.builder(Nodes.class)&lt;br/&gt;
.child(Node.class, new NodeKey(dstNodeId))&lt;br/&gt;
.child(NodeConnector.class, new NodeConnectorKey(dstNodeConnectorId))&lt;br/&gt;
.toInstance();&lt;br/&gt;
final NodeConnectorRef dstNodeConnectorRef = new NodeConnectorRef(dstInstanceId);&lt;br/&gt;
ldb.setDestination(dstNodeConnectorRef);&lt;br/&gt;
... same for source ...&lt;br/&gt;
final LinkDiscovered linkDiscovered = ldb.build();&lt;br/&gt;
logger.info(&quot;onepk connector topology link {}&quot;, linkDiscovered);&lt;br/&gt;
notificationService.publish(linkDiscovered);&lt;/p&gt;</comment>
                            <comment id="48636" author="jhajnar@cisco.com" created="Mon, 22 Sep 2014 09:17:08 +0000"  >&lt;p&gt;Implementation has changed that sal-compatibility always expects openflow type NodeId and NodeConnectorId (short type). This will of course fail if input is something different. &lt;/p&gt;

&lt;p&gt;Added hotfix that changes type from openflow to md-sal(string) when input is not convertible to short:&lt;br/&gt;
&lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/11437/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/11437/&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="48637" author="carolsand@gmail.com" created="Tue, 5 May 2015 15:17:28 +0000"  >&lt;p&gt;This bug is part of the project to Move all ADSAL associated component bugs to ADSAL.&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>1309</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=1309]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10204" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>ODL SR Target Milestone</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10372"><![CDATA[Helium-RC2]]></customfieldvalue>

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

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