Skip to content

Commit

Permalink
[vs] Fix return statment on hostif create (sonic-net#923)
Browse files Browse the repository at this point in the history
  • Loading branch information
kcudnik authored Sep 8, 2021
1 parent 509b888 commit 1c4f04c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vslib/SwitchStateBaseHostif.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -665,14 +665,14 @@ sai_status_t SwitchStateBase::vs_create_hostif_tap_interface(
SWSS_LOG_ERROR("failed to get admin state for port %s",
sai_serialize_object_id(obj_id).c_str());

return false;
return status;
}

if (ifup(vname.c_str(), obj_id, attr.value.booldata, false))
{
SWSS_LOG_ERROR("ifup failed on %s", vname.c_str());

return false;
return SAI_STATUS_FAILURE;
}

if (!hostif_create_tap_veth_forwarding(name, tapfd, obj_id))
Expand Down

0 comments on commit 1c4f04c

Please sign in to comment.