Skip to content

Commit

Permalink
[intfsorch] Fix bug for VRF existence check (sonic-net#882)
Browse files Browse the repository at this point in the history
Skip non-existent VRF, not the opposite.

Signed-off-by: shikenghua <kh_shi@edge-core.com>
  • Loading branch information
shikenghua authored and prsunny committed May 8, 2019
1 parent 8828152 commit 98fa958
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion orchagent/intfsorch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ void IntfsOrch::doTask(Consumer &consumer)
sai_object_id_t vrf_id = gVirtualRouterId;
if (!vrf_name.empty())
{
if (m_vrfOrch->isVRFexists(vrf_name))
if (!m_vrfOrch->isVRFexists(vrf_name))
{
it++;
continue;
Expand Down

0 comments on commit 98fa958

Please sign in to comment.