summaryrefslogtreecommitdiffstats
path: root/zebra/zebra_nhg.h
diff options
context:
space:
mode:
authorStephen Worley <sworley@cumulusnetworks.com>2019-08-01 20:24:35 +0200
committerStephen Worley <sworley@cumulusnetworks.com>2019-10-25 17:13:41 +0200
commit9a1588c4ce9ef163c9f4eeeed1a92e11133ed6c8 (patch)
tree3e7bb38a7c0ab81b40158c817a7d0a2ef5631f9e /zebra/zebra_nhg.h
parentzebra: Sweep our nexthop objects out on restart (diff)
downloadfrr-9a1588c4ce9ef163c9f4eeeed1a92e11133ed6c8.tar.xz
frr-9a1588c4ce9ef163c9f4eeeed1a92e11133ed6c8.zip
zebra: Add handling for kernel del/update nexthop
Add handling for delete/update nexthop object messages from the kernel. If someone deletes a nexthop object we are still using, send it back down. If the someone updates a nexthop we are using, replace that nexthop with ours. Routes are referencing this nexthop object ID and we resolved it ourselves, so we should force the other `someone` to submit to our will. Signed-off-by: Stephen Worley <sworley@cumulusnetworks.com>
Diffstat (limited to 'zebra/zebra_nhg.h')
-rw-r--r--zebra/zebra_nhg.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/zebra/zebra_nhg.h b/zebra/zebra_nhg.h
index 1fdda276c..eb9173457 100644
--- a/zebra/zebra_nhg.h
+++ b/zebra/zebra_nhg.h
@@ -230,6 +230,8 @@ extern int zebra_nhg_kernel_find(uint32_t id, struct nexthop *nh,
struct nh_grp *grp, uint8_t count,
vrf_id_t vrf_id, afi_t afi, int type,
int startup);
+/* Del via kernel */
+extern int zebra_nhg_kernel_del(uint32_t id);
/* Find via route creation */
extern struct nhg_hash_entry *