Skip to content

Commit

Permalink
[syncd_saiswitch]: Keep full port oids (#234)
Browse files Browse the repository at this point in the history
Keep port oids in COUNTERS_DB in serializable format
This way client code can reuse sai_deserialize... api
  • Loading branch information
marian-pritsak authored and lguohan committed Oct 3, 2017
1 parent e4d2427 commit 888e69c
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions syncd/syncd_saiswitch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -586,12 +586,6 @@ void SaiSwitch::collectCounters(
sai_object_id_t vid = translate_rid_to_vid(port_rid, m_switch_vid);

std::string strPortId = sai_serialize_object_id(vid);

// for counters, use port vid as printf "%llx" format
std::stringstream ss;
ss << std::hex << vid;
strPortId = ss.str();

std::vector<swss::FieldValueTuple> values;

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

0 comments on commit 888e69c

Please sign in to comment.