forked from Mirror/frr
bgpd: remove useless calls to afi2family
Remove useless calls to afi2family(). str2prefix() always sets the prefix family. Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com>
This commit is contained in:
parent
1f9c880297
commit
a0a0749568
|
@ -13325,8 +13325,6 @@ static int bgp_show_route_in_table(struct vty *vty, struct bgp *bgp, struct bgp_
|
||||||
return CMD_WARNING;
|
return CMD_WARNING;
|
||||||
}
|
}
|
||||||
|
|
||||||
match.family = afi2family(afi);
|
|
||||||
|
|
||||||
if (use_json)
|
if (use_json)
|
||||||
json = json_object_new_object();
|
json = json_object_new_object();
|
||||||
|
|
||||||
|
@ -16737,8 +16735,6 @@ static int bgp_clear_damp_route(struct vty *vty, const char *view_name,
|
||||||
return CMD_WARNING;
|
return CMD_WARNING;
|
||||||
}
|
}
|
||||||
|
|
||||||
match.family = afi2family(afi);
|
|
||||||
|
|
||||||
if ((safi == SAFI_MPLS_VPN) || (safi == SAFI_ENCAP)
|
if ((safi == SAFI_MPLS_VPN) || (safi == SAFI_ENCAP)
|
||||||
|| (safi == SAFI_EVPN)) {
|
|| (safi == SAFI_EVPN)) {
|
||||||
for (dest = bgp_table_top(bgp->rib[AFI_IP][safi]); dest;
|
for (dest = bgp_table_top(bgp->rib[AFI_IP][safi]); dest;
|
||||||
|
|
|
@ -11080,7 +11080,6 @@ static int bgp_clear_prefix(struct vty *vty, const char *view_name,
|
||||||
return CMD_WARNING;
|
return CMD_WARNING;
|
||||||
}
|
}
|
||||||
|
|
||||||
match.family = afi2family(afi);
|
|
||||||
rib = bgp->rib[afi][safi];
|
rib = bgp->rib[afi][safi];
|
||||||
|
|
||||||
if (safi == SAFI_MPLS_VPN) {
|
if (safi == SAFI_MPLS_VPN) {
|
||||||
|
|
Loading…
Reference in a new issue