mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-02 23:38:55 +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_dest *dest;
|
||||
struct bgp *bgp;
|
||||
struct attr attr;
|
||||
struct attr attr, attr_unchanged;
|
||||
int ret;
|
||||
struct update_subgroup *subgrp;
|
||||
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_unchanged = *ain->attr;
|
||||
route_filtered = false;
|
||||
|
||||
/* 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,
|
||||
"%pFX", rn_p);
|
||||
} else
|
||||
route_vty_out_tmp(vty, bgp, dest, rn_p,
|
||||
&attr, safi, use_json,
|
||||
json_ar, wide);
|
||||
route_vty_out_tmp(vty, bgp, dest, rn_p, &attr_unchanged,
|
||||
safi, use_json, json_ar, wide);
|
||||
bgp_attr_flush(&attr);
|
||||
(*output_count)++;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user