Uploaded image for project: 'snmp4sdn'
  1. snmp4sdn
  2. SNMP4SDN-16

Results of calling rpc get-node-connector-list and rpc get-edge-list in branch stable/beryllium are null.

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Done
    • unspecified
    • None
    • General
    • None
    • Operating System: All
      Platform: All

    • 5433

    Description

      Branch: stable/beryllium.

      There are three switches in my experiment, and their connections are as follows.
      s1(GE1/0/1)-----(GE1/0/1)s2(GE1/0/2)-----(GE1/0/1)s3

      File snmp4sdn_swdb.csv is as follows, and there are only s1 and s2 in this file.
      MAC,IP,SNMP_Community,CLI_Username,CLI_Password,Model
      74:25:8a:e4:11:be,17.0.2.104,public,admin,admin,H3C_VSR
      74:25:8a:e3:56:b4,17.0.3.105,public,admin,admin,H3C_VSR

      Firstly, I use command snmp4sdn:readdb to read device information about s1 and s2. The result is as follows.
      MAC_address (sid) IP_address SNMP_community CLI_username CLI_password Model_name
      =======================================================================
      00:00:74:25:8a:e3:56:b4 (127704592766644 ) 17.0.3.105 public admin admin H3C_VSR
      00:00:74:25:8a:e4:11:be (127704592814526 ) 17.0.2.104 public admin admin H3C_VSR
      MAC_address (sid) IP_address SNMP_community CLI_username CLI_password Model_name
      =======================================================================
      00:00:74:25:8a:e3:56:b4 (127704592766644 ) 17.0.3.105 public admin admin H3C_VSR
      00:00:74:25:8a:e4:11:be (127704592814526 ) 17.0.2.104 public admin admin H3C_VSR

      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.
      rpc get-node-list is called, node list:
      SNMP|127704592766644
      SNMP|127704592814526

      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
      2016-02-26 08:45:03,322 | INFO | l for user karaf | OFStatisticsManager | 242 - org.opendaylight.snmp4sdn - 0.3.0.Beryllium | Added Switch 00:00:74:25:8a:e3:56:b4 to target pool
      2016-02-26 08:45:03,380 | ERROR | l for user karaf | Controller | 242 - org.opendaylight.snmp4sdn - 0.3.0.Beryllium | ERROR: scanAndAddPort(): portStateTable has no entry for port 17
      2016-02-26 08:45:03,390 | INFO | l for user karaf | Controller | 242 - org.opendaylight.snmp4sdn - 0.3.0.Beryllium | Add switch(00:00:74:25:8a:e4:11:be) to the Controller
      2016-02-26 08:45:03,391 | INFO | l for user karaf | OFStatisticsManager | 242 - org.opendaylight.snmp4sdn - 0.3.0.Beryllium | Added Switch 00:00:74:25:8a:e4:11:be to target pool
      2016-02-26 08:45:03,445 | ERROR | l for user karaf | Controller | 242 - org.opendaylight.snmp4sdn - 0.3.0.Beryllium | ERROR: scanAndAddPort(): portStateTable has no entry for port 17
      2016-02-26 08:45:45,223 | ERROR | opologyDiscovery | SwitchHandler | 242 - org.opendaylight.snmp4sdn - 0.3.0.Beryllium | ERROR: setPhysicalPortState(): given portState is null, for SNMPPhysicalPort phyPort whose portID is 17

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            nanfei1988@126.com Nanfei Chen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: