[SNMP4SDN-16] Results of calling rpc get-node-connector-list and rpc get-edge-list in branch stable/beryllium are null. Created: 26/Feb/16 Updated: 19/Oct/17 Resolved: 01/Apr/16 |
|
| Status: | Resolved |
| Project: | snmp4sdn |
| Component/s: | General |
| Affects Version/s: | unspecified |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | Nanfei Chen | Assignee: | Unassigned |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Operating System: All |
||
| External issue ID: | 5433 |
| Description |
|
Branch: stable/beryllium. There are three switches in my experiment, and their connections are as follows. File snmp4sdn_swdb.csv is as follows, and there are only s1 and s2 in this file. Firstly, I use command snmp4sdn:readdb to read device information about s1 and s2. The result is as follows. Secondly, I use command snmp4sdn:topodiscover to discover the switches and the edges between them. And then, I call rpc get-node-list to get the nodes, and the result is right, as follows. But when I call rpc get-node-connector-list and rpc get-edge-list, I find the results of calling those rpcs are null. And I find some ERROR logs also, as follows. 2016-02-26 08:45:03,312 | INFO | l for user karaf | Controller | 242 - org.opendaylight.snmp4sdn - 0.3.0.Beryllium | Add switch(00:00:74:25:8a:e3:56:b4) to the Controller |
| Comments |
| Comment by Nanfei Chen [ 26/Feb/16 ] |
|
I have committed two changes for this bug. For branch stable/beryllium: https://git.opendaylight.org/gerrit/#/c/35086/. For branch master: https://git.opendaylight.org/gerrit/#/c/35091/. |
| Comment by Nanfei Chen [ 29/Feb/16 ] |
|
There are some problems in method readPortStateEntries of class SNMPHandler when dealing with tableVars. Because the valid port number in tableVars does not begin from 1 always. And the valid port number in tableVars does not be continuous always. For example, as to a device whose model is H3C S6800-4C, when the second slot is used only, the valid port number in tableVars will be 33~57, 61, 26446. There are also other similar situations. In those cases, there will be some problems when using tmpCount for decision. |
| Comment by Christine Hsieh [ 01/Apr/16 ] |
|
Naifei provided fix is merged now, https://git.opendaylight.org/gerrit/#/c/35091/ |