Skipping tunnel ports when colleting port stats... 34/83234/3
authorNaveen Kumar Verma <naveen.kumar.verma@ericsson.com>
Wed, 24 Jul 2019 10:38:59 +0000 (16:08 +0530)
committerFaseela K <faseela.k@ericsson.com>
Tue, 30 Jul 2019 05:20:27 +0000 (05:20 +0000)
Incomplete statistics comes for Tunnel ports from ovs:

 "bytes_received": "-1",
 "bytes_sent": "-1",
 "duration": "65373",
 "packets_received": "-1",
 "packets_received_drop": "-1",
 "packets_received_error": "-1",
 "packets_received_on_tunnel": "0",
 "packets_sent": "-1",
 "packets_sent_on_tunnel": "0",
 "port_id": "23",
 "tenant_id": "3ecca858-98cd-4923-9011-e8c750f7b9a8",
 "uuid": "9e94558d-9dbf-4a82-88df-b99d8fe056fa"

Change-Id: I116020f735bc341864b3fd80ee6d866deac155f8
Signed-off-by: Naveen Kumar Verma <naveen.kumar.verma@ericsson.com>
interfacemanager/interfacemanager-impl/src/main/java/org/opendaylight/genius/interfacemanager/pmcounters/NodeConnectorStatsImpl.java

index 97381d1424f1ebe07b3253ff77747bff0557d0e3..a6ce775cc52f275359d517a79f8bd979c95113be 100644 (file)
@@ -279,10 +279,13 @@ public class NodeConnectorStatsImpl extends AsyncClusteredDataTreeChangeListener
                         continue;
                     }
                 } else {
-                    LOG.trace("PortUuid is not found for portname {}. Skipping IFM counters publish for this port.",
+                    LOG.trace("PortUuid is not present for portname {}. Skipping IFM counters publish for this port.",
                         portName.get());
                     continue;
                 }
+            } else {
+                LOG.trace("Port {} not found in PortName Cache.", portNameInCache);
+                continue;
             }
 
             Counter counter = getCounter(CounterConstants.IFM_PORT_COUNTER_OFPORT_DURATION, dpid, port, portUuid,null);