@@ -5052,7 +5052,7 @@ sai_status_t Meta::meta_generic_validation_create(
5052
5052
5053
5053
if (haskeys)
5054
5054
{
5055
- std::string key = AttrKeyMap::constructKey (meta_key, attr_count, attr_list);
5055
+ std::string key = AttrKeyMap::constructKey (switch_id, meta_key, attr_count, attr_list);
5056
5056
5057
5057
// since we didn't created oid yet, we don't know if attribute key exists, check all
5058
5058
if (m_attrKeys.attrKeyExists (key))
@@ -6951,7 +6951,7 @@ void Meta::meta_generic_validation_post_create(
6951
6951
{
6952
6952
auto mKey = sai_serialize_object_meta_key (meta_key);
6953
6953
6954
- auto attrKey = AttrKeyMap::constructKey (meta_key, attr_count, attr_list);
6954
+ auto attrKey = AttrKeyMap::constructKey (switch_id, meta_key, attr_count, attr_list);
6955
6955
6956
6956
m_attrKeys.insert (mKey , attrKey);
6957
6957
}
@@ -7914,7 +7914,9 @@ void Meta::populate(
7914
7914
{
7915
7915
auto mKey = sai_serialize_object_meta_key (mk);
7916
7916
7917
- auto attrKey = AttrKeyMap::constructKey (mk, attr_count, attr_list);
7917
+ auto switchId = switchIdQuery (mk.objectkey .key .object_id );
7918
+
7919
+ auto attrKey = AttrKeyMap::constructKey (switchId, mk, attr_count, attr_list);
7918
7920
7919
7921
m_attrKeys.insert (mKey , attrKey);
7920
7922
}
0 commit comments