Skip to content

Commit abfeef3

Browse files
Volodymyr Samotiylguohan
Volodymyr Samotiy
authored andcommitted
[saisdkdump]: Fix dump generation crash (sonic-net#493)
Signed-off-by: Volodymyr Samotiy <[email protected]>
1 parent 80c7e8b commit abfeef3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

saisdkdump/saisdkdump.cpp

+3-1
Original file line numberDiff line numberDiff line change
@@ -131,10 +131,12 @@ int main(int argc, char **argv)
131131
}
132132

133133
sai_object_id_t switch_id;
134-
const uint32_t AttributesCount = 1;
134+
const uint32_t AttributesCount = 2;
135135
sai_attribute_t attrs[AttributesCount];
136136
attrs[0].id = SAI_SWITCH_ATTR_INIT_SWITCH;
137137
attrs[0].value.booldata = false;
138+
attrs[1].id = SAI_SWITCH_ATTR_UNINIT_DATA_PLANE_ON_REMOVAL;
139+
attrs[1].value.booldata = false;
138140

139141
status = switch_api->create_switch(&switch_id, AttributesCount, attrs);
140142
if (status != SAI_STATUS_SUCCESS)

0 commit comments

Comments
 (0)