]> git.puffer.fish Git - matthieu/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)
committerIgor Ryzhov <iryzhov@nfware.com>
Tue, 6 Oct 2020 12:54:25 +0000 (15:54 +0300)
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 3c99ce29c3a1ada0a9a467682b3fd8e99478b88c..779d27306d8c53b1239959ae6e9ee2559a3f2f38 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;