Skip to content

Commit 888e69c

Browse files
marian-pritsaklguohan
authored andcommitted
[syncd_saiswitch]: Keep full port oids (#234)
Keep port oids in COUNTERS_DB in serializable format This way client code can reuse sai_deserialize... api
1 parent e4d2427 commit 888e69c

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

syncd/syncd_saiswitch.cpp

-6
Original file line numberDiff line numberDiff line change
@@ -586,12 +586,6 @@ void SaiSwitch::collectCounters(
586586
sai_object_id_t vid = translate_rid_to_vid(port_rid, m_switch_vid);
587587

588588
std::string strPortId = sai_serialize_object_id(vid);
589-
590-
// for counters, use port vid as printf "%llx" format
591-
std::stringstream ss;
592-
ss << std::hex << vid;
593-
strPortId = ss.str();
594-
595589
std::vector<swss::FieldValueTuple> values;
596590

597591
for (size_t idx = 0; idx < counters.size(); idx++)

0 commit comments

Comments
 (0)