mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-07 17:18:56 +00:00
bgpd: Show unmodified version of received-routes per neighbor
If we have soft inbound enabled, we should see how the route looks like before it was modified by a route-map/prefix-list. Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
This commit is contained in:
parent
8b1b5315c3
commit
60016a8e8b
@ -14513,7 +14513,7 @@ show_adj_route(struct vty *vty, struct peer *peer, struct bgp_table *table,
|
|||||||
struct bgp_adj_out *adj = NULL;
|
struct bgp_adj_out *adj = NULL;
|
||||||
struct bgp_dest *dest;
|
struct bgp_dest *dest;
|
||||||
struct bgp *bgp;
|
struct bgp *bgp;
|
||||||
struct attr attr;
|
struct attr attr, attr_unchanged;
|
||||||
int ret;
|
int ret;
|
||||||
struct update_subgroup *subgrp;
|
struct update_subgroup *subgrp;
|
||||||
struct peer_af *paf = NULL;
|
struct peer_af *paf = NULL;
|
||||||
@ -14693,6 +14693,7 @@ show_adj_route(struct vty *vty, struct peer *peer, struct bgp_table *table,
|
|||||||
}
|
}
|
||||||
|
|
||||||
attr = *ain->attr;
|
attr = *ain->attr;
|
||||||
|
attr_unchanged = *ain->attr;
|
||||||
route_filtered = false;
|
route_filtered = false;
|
||||||
|
|
||||||
/* Filter prefix using distribute list,
|
/* Filter prefix using distribute list,
|
||||||
@ -14748,9 +14749,8 @@ show_adj_route(struct vty *vty, struct peer *peer, struct bgp_table *table,
|
|||||||
json_ar, json_net,
|
json_ar, json_net,
|
||||||
"%pFX", rn_p);
|
"%pFX", rn_p);
|
||||||
} else
|
} else
|
||||||
route_vty_out_tmp(vty, bgp, dest, rn_p,
|
route_vty_out_tmp(vty, bgp, dest, rn_p, &attr_unchanged,
|
||||||
&attr, safi, use_json,
|
safi, use_json, json_ar, wide);
|
||||||
json_ar, wide);
|
|
||||||
bgp_attr_flush(&attr);
|
bgp_attr_flush(&attr);
|
||||||
(*output_count)++;
|
(*output_count)++;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user