mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-06 23:29:36 +00:00
bgpd: Check for per-peer outbound configuration, in addition to the peer-group config
When displaying the config, bgpd only checked for the existance of a peer-group prefix-list before deciding to not display the outbound prefix-list. This commit updates the outbound prefix-list logic to match the inbound.
This commit is contained in:
parent
7e4f56d349
commit
a1e91fee4c
13
bgpd/bgpd.c
13
bgpd/bgpd.c
@ -6190,11 +6190,14 @@ static void bgp_config_write_filter(struct vty *vty, struct peer *peer,
|
|||||||
addr, filter->plist[in].name);
|
addr, filter->plist[in].name);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (filter->plist[out].name && !gfilter) {
|
if (filter->plist[out].name)
|
||||||
afi_header_vty_out(vty, afi, safi, write,
|
if (!gfilter || !gfilter->plist[out].name
|
||||||
" neighbor %s prefix-list %s out\n", addr,
|
|| strcmp(filter->plist[out].name, gfilter->plist[out].name)
|
||||||
filter->plist[out].name);
|
!= 0) {
|
||||||
}
|
afi_header_vty_out(vty, afi, safi, write,
|
||||||
|
" neighbor %s prefix-list %s out\n",
|
||||||
|
addr, filter->plist[out].name);
|
||||||
|
}
|
||||||
|
|
||||||
/* route-map. */
|
/* route-map. */
|
||||||
if (filter->map[RMAP_IN].name)
|
if (filter->map[RMAP_IN].name)
|
||||||
|
Loading…
Reference in New Issue
Block a user