Merge pull request #18624 from louis-6wind/remove-afi2family

bgpd: remove useless calls to afi2family
This commit is contained in:
Donatas Abraitis 2025-04-10 17:14:08 +03:00 committed by GitHub
commit 2f0b8ff1ea
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 0 additions and 5 deletions

View file

@ -13337,8 +13337,6 @@ static int bgp_show_route_in_table(struct vty *vty, struct bgp *bgp, struct bgp_
return CMD_WARNING;
}
match.family = afi2family(afi);
if (use_json)
json = json_object_new_object();
@ -16749,8 +16747,6 @@ static int bgp_clear_damp_route(struct vty *vty, const char *view_name,
return CMD_WARNING;
}
match.family = afi2family(afi);
if ((safi == SAFI_MPLS_VPN) || (safi == SAFI_ENCAP)
|| (safi == SAFI_EVPN)) {
for (dest = bgp_table_top(bgp->rib[AFI_IP][safi]); dest;

View file

@ -11080,7 +11080,6 @@ static int bgp_clear_prefix(struct vty *vty, const char *view_name,
return CMD_WARNING;
}
match.family = afi2family(afi);
rib = bgp->rib[afi][safi];
if (safi == SAFI_MPLS_VPN) {