diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2020-08-20 10:34:38 -0400 |
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2020-08-28 07:51:06 -0400 |
| commit | fcf29c6919853416a86f72c510d488490bdd208f (patch) | |
| tree | 6139235c54cd706137aa25728cc49d52298b7027 /pbrd/pbr_map.h | |
| parent | 79924520085ec6a7ac368e62226e3ad5ff9cc025 (diff) | |
pbrd: Properly hook back up when vrf is destroyed than recreated
Currently when a vrf is deleted than added back in PBR was
not going through and touching up all the data structures
that needed to be massaged to allow it to start working again.
This includes:
a) Search through the nexthop groups to find any nexthop
that references the old nexthop id and set it right again.
b) Search through the nexthop cache for nht and reset
those nexthops to the right vrf as well as re-register
Signed-off-by: Stephen Worley <sworley@cumulusnetworks.com>
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'pbrd/pbr_map.h')
| -rw-r--r-- | pbrd/pbr_map.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pbrd/pbr_map.h b/pbrd/pbr_map.h index 64c090d2e8..8500709119 100644 --- a/pbrd/pbr_map.h +++ b/pbrd/pbr_map.h @@ -205,4 +205,8 @@ extern void pbr_map_install(struct pbr_map *pbrm); extern void pbr_map_policy_install(const char *name); extern void pbr_map_policy_delete(struct pbr_map *pbrm, struct pbr_map_interface *pmi); + +extern void pbr_map_check_vrf_nh_group_change(const char *nh_group, + struct pbr_vrf *pbr_vrf, + uint32_t old_vrf_id); #endif |
