Skip to content

Commit e7ba644

Browse files
authored
[vslib]: Fix missing MACsec Create Port action (sonic-net#770)
Missing MACsec Create Port action in SwitchStateBase::create. This bug will cause MACsec SC Crate action fail. Signed-off-by: Ze Gan <ganze718@gmail.com>
1 parent c71779f commit e7ba644

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

vslib/src/SwitchStateBase.cpp

+7
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,13 @@ sai_status_t SwitchStateBase::create(
154154
return createHostif(object_id, switch_id, attr_count, attr_list);
155155
}
156156

157+
if (object_type == SAI_OBJECT_TYPE_MACSEC_PORT)
158+
{
159+
sai_object_id_t object_id;
160+
sai_deserialize_object_id(serializedObjectId, object_id);
161+
return createMACsecPort(object_id, switch_id, attr_count, attr_list);
162+
}
163+
157164
if (object_type == SAI_OBJECT_TYPE_MACSEC_SC)
158165
{
159166
sai_object_id_t object_id;

0 commit comments

Comments
 (0)