Skip to content

Commit 6d40d85

Browse files
Shuotian Chengqiluo-msft
Shuotian Cheng
authored andcommitted
[mirrororch]: Fix bug: return false when SAI API call fails (sonic-net#607)
1 parent cbc5a05 commit 6d40d85

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

orchagent/mirrororch.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -528,6 +528,8 @@ bool MirrorOrch::activateSession(const string& name, MirrorEntry& session)
528528
{
529529
SWSS_LOG_ERROR("Failed to activate mirroring session %s\n", name.c_str());
530530
session.status = false;
531+
532+
return false;
531533
}
532534

533535
session.status = true;

0 commit comments

Comments
 (0)