[OPNFLWPLUG-436] inventory api shows removed openflow ports on the cisco switches Created: 09/May/15  Updated: 27/Sep/21  Resolved: 16/Mar/16

Status: Resolved
Project: OpenFlowPlugin
Component/s: General
Affects Version/s: None
Fix Version/s: None

Type: Bug
Reporter: Narayana Rao Kankipati Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: Linux
Platform: All


External issue ID: 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.



 Comments   
Comment by Abhijit Kumbhare [ 10/Nov/15 ]

Can you recheck with the latest code? This was fixed 3-4 months ago.

Comment by Jozef Bacigal [ 16/Mar/16 ]

Long time no response, if persist open a new bug please.

Generated at Wed Feb 07 20:32:28 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.