From d560078848fcfba9a57cb765a746f3f605a079c4 Mon Sep 17 00:00:00 2001 From: vivek Date: Fri, 1 Dec 2017 22:29:47 -0800 Subject: [PATCH] Revert "zebra: Do not check for l3vni oper up in nh uninstall" This reverts commit d8f5884846ead8fc78f36c68db5ed52e758b6e87. --- zebra/zebra_vxlan.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/zebra/zebra_vxlan.c b/zebra/zebra_vxlan.c index 51b4f23151..90b0516276 100644 --- a/zebra/zebra_vxlan.c +++ b/zebra/zebra_vxlan.c @@ -3231,6 +3231,9 @@ static int zl3vni_nh_install(zebra_l3vni_t *zl3vni, static int zl3vni_nh_uninstall(zebra_l3vni_t *zl3vni, zebra_neigh_t *n) { + if (!is_l3vni_oper_up(zl3vni)) + return -1; + if (!(n->flags & ZEBRA_NEIGH_REMOTE) || !(n->flags & ZEBRA_NEIGH_REMOTE_NH)) return 0; -- 2.39.5