Details
-
Bug
-
Status: Resolved
-
Resolution: Done
-
None
-
None
-
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
{
"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":
,
"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":
,
"duration":
,
"collision-count": 18446744073709552000,
"bytes":
,
"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":
,
"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":
,
"duration":
,
"collision-count": 18446744073709552000,
"bytes":
,
"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.