Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zebra: Skip route table lookup if zvrf is NULL #16858

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions zebra/zebra_vrf.c
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,13 @@ struct route_table *zebra_vrf_get_table_with_table_id(afi_t afi, safi_t safi,
struct other_route_table *otable;
struct route_table *table;

/* VRF config could be deleted while some route messages for the VRF were
jyuan-panw marked this conversation as resolved.
Show resolved Hide resolved
* still in zebra metaq pending processing. Skip vrf table lookup for the
* route if zvrf for vrf_id is already NULL
*/
if (zvrf == NULL)
return NULL;

table = zebra_vrf_lookup_table_with_table_id(afi, safi, vrf_id,
table_id);

Expand Down
Loading