<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:39:18 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-15] Exception error of REST API get-arp-entry, if the IP address is not in the switch&apos;s ARP table</title>
                <link>https://jira.opendaylight.org/browse/SNMP4SDN-15</link>
                <project id="10170" key="SNMP4SDN">snmp4sdn</project>
                    <description>&lt;p&gt;To get ARP entry, using the REST API, if the &amp;lt;ip_address&amp;gt; is not in the switch&apos;s ARP table, then get an Exception error message.&lt;/p&gt;

&lt;p&gt;curl --user &quot;admin&quot;:&quot;admin&quot; -H &quot;Accept: application/json&quot; -H &quot;Content-type: application/json&quot; -X POST http://&amp;lt;controller_ip_address&amp;gt;:8181/restconf/operations/misc-config:get-arp-entry -d &quot;{input:{&quot;node-id&quot;:&amp;lt;node_id&amp;gt;, &quot;ip-address&quot;:&apos;&amp;lt;ip_address&amp;gt;&apos;}}&quot;&lt;/p&gt;

&lt;p&gt;Client get error:&lt;/p&gt;

&lt;p&gt;&amp;lt;p&amp;gt;Problem accessing /restconf/operations/misc-config:get-arp-entry. Reason:&lt;br/&gt;
&amp;lt;pre&amp;gt;    Server Error&amp;lt;/pre&amp;gt;&amp;lt;/p&amp;gt;&amp;lt;h3&amp;gt;Caused by:&amp;lt;/h3&amp;gt;&amp;lt;pre&amp;gt;java.lang.NullPointerException&lt;br/&gt;
        at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:210)&lt;br/&gt;
...&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: All&lt;br/&gt;
Platform: All&lt;/p&gt;</environment>
        <key id="26754">SNMP4SDN-15</key>
            <summary>Exception error of REST API get-arp-entry, if the IP address is not in the switch&apos;s ARP table</summary>
                <type id="10104" iconUrl="https://jira.opendaylight.org/secure/viewavatar?size=xsmall&amp;avatarId=10303&amp;avatarType=issuetype">Bug</type>
                                                <status id="10001" iconUrl="https://jira.opendaylight.org/" description="">In Review</status>
                    <statusCategory id="4" key="indeterminate" colorName="yellow"/>
                                    <resolution id="-1">Unresolved</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="ylhsieh">Christine Hsieh</reporter>
                        <labels>
                    </labels>
                <created>Wed, 17 Feb 2016 02:46:19 +0000</created>
                <updated>Thu, 19 Oct 2017 21:25:02 +0000</updated>
                                            <version>unspecified</version>
                                                    <component>General</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="53739" author="nanfei1988@126.com" created="Mon, 29 Feb 2016 02:00:57 +0000"  >&lt;p&gt;I have committed two changes for this bug.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/35522/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/35522/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/35523/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/35523/&lt;/a&gt;&lt;/p&gt;


&lt;p&gt;There will be some problems if we use the oid which consists of arpTableEntryPhyAddrOID, midStuffForArpTableEntryOID and ipAddress to get the mac address corresponding to the ipAddress in arp table.&lt;/p&gt;


&lt;p&gt;Because the midStuffForArpTableEntryOID is not always 5121 for all devices which come from different vendors.&lt;/p&gt;


&lt;p&gt;Furthermore, the midStuffForArpTableEntryOID is also not a constant even for a same device. For example, when I use MG-SOFT MIB Browser software to get ipNetToMediaPhysAddress(this oid is arpTableEntryPhyAddrOID, and it is 1.3.6.1.2.1.4.22.1.2) from h3c&apos;s device, the result is as follows.&lt;/p&gt;


&lt;ul&gt;
	&lt;li&gt;
	&lt;ul&gt;
		&lt;li&gt;
		&lt;ul&gt;
			&lt;li&gt;
			&lt;ul&gt;
				&lt;li&gt;
				&lt;ul&gt;
					&lt;li&gt;SNMP QUERY STARTED *****&lt;br/&gt;
1: ipNetToMediaPhysAddress.37.192.168.1.1 (PhysAddress) 70:F9:6D:EB:03:17 &lt;span class=&quot;error&quot;&gt;&amp;#91;70.F9.6D.EB.03.17 (hex)&amp;#93;&lt;/span&gt;&lt;br/&gt;
2: ipNetToMediaPhysAddress.39.192.168.5.1 (PhysAddress) 70:F9:6D:EB:03:17 &lt;span class=&quot;error&quot;&gt;&amp;#91;70.F9.6D.EB.03.17 (hex)&amp;#93;&lt;/span&gt;&lt;br/&gt;
3: ipNetToMediaPhysAddress.47.172.168.2.1 (PhysAddress) 00:50:56:60:AC:56 &lt;span class=&quot;error&quot;&gt;&amp;#91;Vmware_60:AC:56&amp;#93;&lt;/span&gt;&lt;br/&gt;
4: ipNetToMediaPhysAddress.26446.98.0.0.1 (PhysAddress) 00:0F:E1:21:21:15 &lt;span class=&quot;error&quot;&gt;&amp;#91;Id_21:21:15&amp;#93;&lt;/span&gt;&lt;br/&gt;
5: ipNetToMediaPhysAddress.26446.98.0.0.5 (PhysAddress) 5C:DD:70:0F:00:D0 &lt;span class=&quot;error&quot;&gt;&amp;#91;5C.DD.70.0F.00.D0 (hex)&amp;#93;&lt;/span&gt;&lt;/li&gt;
				&lt;/ul&gt;
				&lt;/li&gt;
			&lt;/ul&gt;
			&lt;/li&gt;
		&lt;/ul&gt;
		&lt;/li&gt;
	&lt;/ul&gt;
	&lt;/li&gt;
&lt;/ul&gt;



&lt;p&gt;We can see that the midStuffForArpTableEntryOID is not a constant even for a same device from this example.&lt;/p&gt;</comment>
                            <comment id="53740" author="nanfei1988@126.com" created="Mon, 29 Feb 2016 02:54:45 +0000"  >&lt;p&gt;By the way, I have committed two new bugs, &lt;a href=&quot;https://jira.opendaylight.org/browse/SNMP4SDN-16&quot; title=&quot;Results of calling rpc get-node-connector-list and rpc get-edge-list in branch stable/beryllium are null.&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SNMP4SDN-16&quot;&gt;&lt;del&gt;SNMP4SDN-16&lt;/del&gt;&lt;/a&gt; and &lt;a href=&quot;https://jira.opendaylight.org/browse/SNMP4SDN-17&quot; title=&quot;Result of calling rpc get-arp-table defined in misc-config.yang is false.&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SNMP4SDN-17&quot;&gt;&lt;del&gt;SNMP4SDN-17&lt;/del&gt;&lt;/a&gt;. &lt;/p&gt;

&lt;p&gt;And I have also committed four changes for the two bugs.&lt;/p&gt;

&lt;p&gt;Thank you.&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>5367</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=5367]]></customfieldvalue>

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

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