From 98fa958644756a223b471aadb05c1c28a057c78a Mon Sep 17 00:00:00 2001 From: shikenghua Date: Thu, 9 May 2019 04:00:34 +0800 Subject: [PATCH] [intfsorch] Fix bug for VRF existence check (#882) Skip non-existent VRF, not the opposite. Signed-off-by: shikenghua --- orchagent/intfsorch.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/orchagent/intfsorch.cpp b/orchagent/intfsorch.cpp index d890af1eece0..467f3aa8ffb4 100644 --- a/orchagent/intfsorch.cpp +++ b/orchagent/intfsorch.cpp @@ -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;