Skip to content

Commit

Permalink
[syncd] Fix access coldvid table per switch (sonic-net#866)
Browse files Browse the repository at this point in the history
Signed-off-by: kcudnik <kcudnik@gmail.com>
  • Loading branch information
kcudnik authored Jul 30, 2021
1 parent 0d5f82f commit f50dba7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion syncd/RedisClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,11 @@

using namespace syncd;

// vid and rid maps contains objects from all switches
#define VIDTORID "VIDTORID"
#define RIDTOVID "RIDTOVID"

// those here are per switch
#define LANES "LANES"
#define HIDDEN "HIDDEN"
#define COLDVIDS "COLDVIDS"
Expand Down Expand Up @@ -664,7 +667,9 @@ void RedisClient::removeColdVid(

auto strVid = sai_serialize_object_id(vid);

m_dbAsic->hdel(COLDVIDS, strVid);
auto key = getRedisColdVidsKey(vid);

m_dbAsic->hdel(key, strVid);
}

std::unordered_map<std::string, std::string> RedisClient::getAttributesFromAsicKey(
Expand Down

0 comments on commit f50dba7

Please sign in to comment.