]> git.puffer.fish Git - mirror/frr.git/commitdiff
staticd: remove unnecessary function call 10111/head
authorIgor Ryzhov <iryzhov@nfware.com>
Thu, 18 Nov 2021 18:18:43 +0000 (21:18 +0300)
committerIgor Ryzhov <iryzhov@nfware.com>
Tue, 23 Nov 2021 09:46:21 +0000 (12:46 +0300)
When the VRF interface is coming up, we don't need to fixup VRF ids - it
was already done in static_vrf_enable when the interface was created.

Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
staticd/static_zebra.c

index 0e0f61d186adb7c31617b9be905951ba032e72fb..311aeda3385118fef6cb7123c612585852f8fb83 100644 (file)
@@ -84,13 +84,6 @@ static int interface_address_delete(ZAPI_CALLBACK_ARGS)
 
 static int static_ifp_up(struct interface *ifp)
 {
-       if (if_is_vrf(ifp)) {
-               struct static_vrf *svrf = ifp->vrf->info;
-
-               if (svrf)
-                       static_fixup_vrf_ids(svrf);
-       }
-
        /* Install any static reliant on this interface coming up */
        static_install_intf_nh(ifp);
        static_ifindex_update(ifp, true);