Skip to content

Commit 9658f75

Browse files
authored
[252] Create hostif fails on vslib when no tap device is used (sonic-net#253)
1 parent 5645698 commit 9658f75

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

vslib/src/sai_vs_hostintf.cpp

+5-1
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,11 @@ sai_status_t vs_create_hostif_int(
314314

315315
if (g_vs_hostif_use_tap_device == false)
316316
{
317-
return SAI_STATUS_SUCCESS;
317+
return vs_generic_create(object_type,
318+
hostif_id,
319+
switch_id,
320+
attr_count,
321+
attr_list);
318322
}
319323

320324
// validate SAI_HOSTIF_ATTR_TYPE

0 commit comments

Comments
 (0)