Uploaded image for project: 'OpenFlowPlugin'
  1. OpenFlowPlugin
  2. OPNFLWPLUG-436

inventory api shows removed openflow ports on the cisco switches

    XMLWordPrintable

Details

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

    • 3163

    Description

      Steps to reproduce the issue
      ============================

      1) i have a n3k switch which configured as below

      on nexus3k i have OpenFlow configured as below..
      openflow
      switch 1
      protocol-version negotiate
      logging flow-mod
      pipeline 201
      controller ipv4 11.11.11.11 port 6653 vrf management security none
      of-port interface ethernet1/1 << only open port part of openflow
      of-port interface ethernet1/2
      hardware profile openflow
      virtual-service ofan3k4
      activate

      inventory api shows as below

      http://11.11.11.11:8181/restconf/operational/opendaylight-inventory:nodes/node/openflow:466244700179552/node-connector/openflow:466244700179552:1

      {
      "node-connector": [
      {
      "id": "openflow:466244700179552:1",
      "flow-node-inventory:port-number": "1",
      "flow-node-inventory:configuration": "",
      "flow-node-inventory:peer-features": "",
      "flow-node-inventory:hardware-address": "A8:0C:0D:BB:8C:68",
      "flow-node-inventory:advertised-features": "",
      "flow-node-inventory:supported": "one-gb-hd",
      "flow-node-inventory:current-speed": 1000000000,
      "flow-node-inventory:state":

      { "live": false, "blocked": false, "link-down": false }

      ,
      "flow-node-inventory:maximum-speed": 1000000000,
      "flow-node-inventory:current-feature": "one-gb-hd",
      "flow-node-inventory:name": "Eth1/1",
      "opendaylight-port-statistics:flow-capable-node-connector-statistics": {
      "receive-frame-error": 18446744073709552000,
      "packets":

      { "transmitted": 764776, "received": 437285 }

      ,
      "duration":

      { "nanosecond": 4294967295, "second": 4294967295 }

      ,
      "collision-count": 18446744073709552000,
      "bytes":

      { "transmitted": 85149917, "received": 54087597 }

      ,
      "receive-over-run-error": 18446744073709552000,
      "receive-crc-error": 18446744073709552000,
      "transmit-errors": 0,
      "receive-drops": 0,
      "transmit-drops": 0,
      "receive-errors": 0
      }
      }
      ]
      }

      http://11.11.11.11:8181/restconf/operational/opendaylight-inventory:nodes/node/openflow:466244700179552/node-connector/openflow:466244700179552:2
      {
      "node-connector": [
      {
      "id": "openflow:466244700179552:2",
      "flow-node-inventory:configuration": "",
      "flow-node-inventory:port-number": "2",
      "flow-node-inventory:peer-features": "",
      "flow-node-inventory:hardware-address": "A8:0C:0D:BB:8C:69",
      "flow-node-inventory:advertised-features": "",
      "flow-node-inventory:supported": "one-gb-hd",
      "flow-node-inventory:current-speed": 1000000000,
      "flow-node-inventory:state":

      { "live": false, "blocked": false, "link-down": true }

      ,
      "flow-node-inventory:maximum-speed": 1000000000,
      "flow-node-inventory:current-feature": "one-gb-hd",
      "flow-node-inventory:name": "Eth1/2",
      "opendaylight-port-statistics:flow-capable-node-connector-statistics": {
      "receive-frame-error": 18446744073709552000,
      "packets":

      { "transmitted": 0, "received": 0 }

      ,
      "duration":

      { "nanosecond": 4294967295, "second": 4294967295 }

      ,
      "collision-count": 18446744073709552000,
      "bytes":

      { "transmitted": 0, "received": 0 }

      ,
      "receive-over-run-error": 18446744073709552000,
      "receive-crc-error": 18446744073709552000,
      "transmit-errors": 0,
      "receive-drops": 0,
      "transmit-drops": 0,
      "receive-errors": 0
      }
      }
      ]
      }

      after i remove the of-port interface ethernet1/2 from switch, i still the node connector 2

      openflow
      switch 1
      protocol-version negotiate
      logging flow-mod
      pipeline 201
      controller ipv4 10.194.132.37 port 6653 vrf management security none
      controller ipv4 10.194.132.147 port 6653 vrf management security none
      of-port interface ethernet1/1
      hardware profile openflow
      virtual-service ofan3k4
      activate

      i still see the node connector details for port 2 from the inventory API.

      http://11.11.11.11:8181/restconf/operational/opendaylight-inventory:nodes/node/openflow:466244700179552/node-connector/openflow:466244700179552:2
      {
      "node-connector": [
      {
      "id": "openflow:466244700179552:2",
      "flow-node-inventory:configuration": "",
      "flow-node-inventory:port-number": "2",
      "flow-node-inventory:peer-features": "",
      "flow-node-inventory:hardware-address": "A8:0C:0D:BB:8C:69",
      "flow-node-inventory:advertised-features": "",
      "flow-node-inventory:supported": "one-gb-hd",

      inventory api is not getting refreshed if openflow ports are removed from switch.

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            nkankipati@gmail.com Narayana Rao Kankipati
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: