<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:39:20 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>[SNMP4SDN-25] Topology discovery failed due to not able to fetch port number in SNMP4SDN due to Short Datatype</title>
                <link>https://jira.opendaylight.org/browse/SNMP4SDN-25</link>
                <project id="10170" key="SNMP4SDN">snmp4sdn</project>
                    <description>&lt;p&gt;We are not able to discover switches in SNMP4SDN for switches having interface number more than 5 digit.&lt;/p&gt;

&lt;p&gt;While debugging we have found that there is an issue in SNMPHandler.java class in SNMP4SDN project. In below method short data type is used for parsing interface number. Below method executes well for interface number less than 6 digits but throws NumberFormatException otherwise. &lt;/p&gt;

&lt;p&gt; private Short retrievePortNumFromPortOID(String oidstr)&lt;/p&gt;
{//input is eg. :iso.0.8802.1.1.2.1.3.7.1.3.52, return is eg. 52
        //e.g. oidstr as &quot;iso.0.8802.1.1.2.1.4.1.1.5.0.49.1&quot;, then return &quot;49&quot;
        int index = oidstr.lastIndexOf(&quot;.&quot;) + 1;
        String ansStr= oidstr.substring(index);

        Short ans = Short.parseShort(ansStr); //CULPRIT     

        //logger.debug(&quot;oidstr (&quot; + oidstr +&quot;) to retrieve port number:&quot; + ans);
        return ans;
    }

&lt;p&gt;Same is replicated in other methods where Short data type has been used.&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: All&lt;br/&gt;
Platform: All&lt;/p&gt;</environment>
        <key id="26764">SNMP4SDN-25</key>
            <summary>Topology discovery failed due to not able to fetch port number in SNMP4SDN due to Short Datatype</summary>
                <type id="10104" iconUrl="https://jira.opendaylight.org/secure/viewavatar?size=xsmall&amp;avatarId=10303&amp;avatarType=issuetype">Bug</type>
                                                <status id="1" iconUrl="https://jira.opendaylight.org/images/icons/statuses/open.png" description="The issue is open and ready for the assignee to start work on it.">Open</status>
                    <statusCategory id="2" key="new" colorName="blue-gray"/>
                                    <resolution id="-1">Unresolved</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="khedkar.suraj@gmail.com">SURAJ KHEDKAR</reporter>
                        <labels>
                    </labels>
                <created>Wed, 11 Oct 2017 14:47:24 +0000</created>
                <updated>Thu, 19 Oct 2017 21:25:02 +0000</updated>
                                            <version>unspecified</version>
                                                    <component>General</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                        <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>9269</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=9269]]></customfieldvalue>

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

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