Skip to content

Commit 9c122e8

Browse files
shikenghuaprsunny
authored andcommitted
[intfsorch] Fix bug for VRF existence check (sonic-net#882)
Skip non-existent VRF, not the opposite. Signed-off-by: shikenghua <[email protected]>
1 parent 0945536 commit 9c122e8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

orchagent/intfsorch.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ void IntfsOrch::doTask(Consumer &consumer)
297297
sai_object_id_t vrf_id = gVirtualRouterId;
298298
if (!vrf_name.empty())
299299
{
300-
if (m_vrfOrch->isVRFexists(vrf_name))
300+
if (!m_vrfOrch->isVRFexists(vrf_name))
301301
{
302302
it++;
303303
continue;

0 commit comments

Comments
 (0)