summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Stapp <mjs@voltanet.io>2019-09-04 21:06:55 +0200
committerGitHub <noreply@github.com>2019-09-04 21:06:55 +0200
commit6c11fdb3c46ce27ac0e2440e941add5a43efaf2c (patch)
tree8ec5a3bc76453c9c7b546d9b8033e72ba4452db4
parentMerge pull request #4883 from mjstapp/dplane_vteps (diff)
parentstaticd: Re-send/Remove routes on interface events (diff)
downloadfrr-6c11fdb3c46ce27ac0e2440e941add5a43efaf2c.tar.xz
frr-6c11fdb3c46ce27ac0e2440e941add5a43efaf2c.zip
Merge pull request #4932 from sworleys/Static-Route-Dev-Redist-Fixbase_7.2
staticd: Re-send/Remove routes on interface events
-rw-r--r--staticd/static_zebra.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/staticd/static_zebra.c b/staticd/static_zebra.c
index 13c04259d..27605da63 100644
--- a/staticd/static_zebra.c
+++ b/staticd/static_zebra.c
@@ -130,6 +130,7 @@ static int interface_state_up(ZAPI_CALLBACK_ARGS)
/* Install any static reliant on this interface coming up */
static_install_intf_nh(ifp);
+ static_ifindex_update(ifp, true);
}
return 0;
@@ -137,7 +138,12 @@ static int interface_state_up(ZAPI_CALLBACK_ARGS)
static int interface_state_down(ZAPI_CALLBACK_ARGS)
{
- zebra_interface_state_read(zclient->ibuf, vrf_id);
+ struct interface *ifp;
+
+ ifp = zebra_interface_state_read(zclient->ibuf, vrf_id);
+
+ if (ifp)
+ static_ifindex_update(ifp, false);
return 0;
}