]> git.puffer.fish Git - mirror/frr.git/commitdiff
zebra: fix deletion of evpn mh neigh-holdtime
authorDon Slice <dslice@cumulusnetworks.com>
Thu, 4 Jun 2020 15:23:09 +0000 (15:23 +0000)
committerAnuradha Karuppiah <anuradhak@cumulusnetworks.com>
Wed, 23 Sep 2020 13:46:19 +0000 (06:46 -0700)
Found that the command "evpn mh neigh-holdtime" can be set but
not deleted.  This fix solves the delete process

Signed-off-by: Don Slice <dslice@cumulusnetworks.com>
zebra/zebra_evpn_mh.c

index 2567171c5e85f1c69053dfaacbcdb583fa9f9ae4..797964bf88edbb03b7437a96c60497d92fa881be 100644 (file)
@@ -2099,7 +2099,7 @@ int zebra_evpn_mh_neigh_holdtime_update(struct vty *vty,
                uint32_t duration, bool set_default)
 {
        if (set_default)
-               zmh_info->neigh_hold_time = EVPN_MH_NEIGH_HOLD_TIME_DEF;
+               duration = EVPN_MH_NEIGH_HOLD_TIME_DEF;
 
        zmh_info->neigh_hold_time = duration;