diff --git a/orchagent/portsorch.cpp b/orchagent/portsorch.cpp index ebce79093c..799a57be57 100644 --- a/orchagent/portsorch.cpp +++ b/orchagent/portsorch.cpp @@ -528,6 +528,7 @@ PortsOrch::PortsOrch(DBConnector *db, DBConnector *stateDb, vector(new Table(m_counter_db.get(), COUNTERS_QUEUE_NAME_MAP)); m_voqTable = unique_ptr(new Table(m_counter_db.get(), COUNTERS_VOQ_NAME_MAP)); + m_voqToPortNamTable = unique_ptr
(new Table(m_counter_db.get(), COUNTERS_PORT_NAME_VOQ_MAP)); m_queuePortTable = unique_ptr
(new Table(m_counter_db.get(), COUNTERS_QUEUE_PORT_MAP)); m_queueIndexTable = unique_ptr
(new Table(m_counter_db.get(), COUNTERS_QUEUE_INDEX_MAP)); m_queueTypeTable = unique_ptr
(new Table(m_counter_db.get(), COUNTERS_QUEUE_TYPE_MAP)); @@ -7269,6 +7270,7 @@ void PortsOrch::generateQueueMapPerPort(const Port& port, FlexCounterQueueStates vector queuePortVector; vector queueIndexVector; vector queueTypeVector; + vector voqToPortNameVector; std::vector queue_ids; if (voq) @@ -7317,6 +7319,7 @@ void PortsOrch::generateQueueMapPerPort(const Port& port, FlexCounterQueueStates // flexcounter orch logic. Always enabled voq counters. addQueueFlexCountersPerPortPerQueueIndex(port, queueIndex, true); queuePortVector.emplace_back(id, sai_serialize_object_id(port.m_system_port_oid)); + voqToPortNameVector.emplace_back(id, port.m_system_port_info.alias); } else { @@ -7337,6 +7340,7 @@ void PortsOrch::generateQueueMapPerPort(const Port& port, FlexCounterQueueStates if (voq) { m_voqTable->set("", queueVector); + m_voqToPortNamTable->set("", voqToPortNameVector); } else { diff --git a/orchagent/portsorch.h b/orchagent/portsorch.h index 3ae283fb80..fa149694fe 100644 --- a/orchagent/portsorch.h +++ b/orchagent/portsorch.h @@ -255,6 +255,7 @@ class PortsOrch : public Orch, public Subject unique_ptr
m_gearboxTable; unique_ptr
m_queueTable; unique_ptr
m_voqTable; + unique_ptr
m_voqToPortNamTable; unique_ptr
m_queuePortTable; unique_ptr
m_queueIndexTable; unique_ptr
m_queueTypeTable;