mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-13 16:26:10 +00:00
bgpd: bgp-no-as-fix.patch
bgp: Fix of peer group internal and external show run output When doing a show run for peer-groups in bgp, the remote-as was not being printed Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com> Reviewed-by:
This commit is contained in:
parent
2c03148e87
commit
84f04a6d0f
16
bgpd/bgpd.c
16
bgpd/bgpd.c
@ -5891,9 +5891,19 @@ bgp_config_write_peer (struct vty *vty, struct bgp *bgp,
|
|||||||
{
|
{
|
||||||
if (! g_peer->as)
|
if (! g_peer->as)
|
||||||
{
|
{
|
||||||
if (g_peer->as_type == AS_SPECIFIED)
|
if (peer->as_type == AS_SPECIFIED)
|
||||||
vty_out (vty, " neighbor %s remote-as %u%s", addr, peer->as,
|
{
|
||||||
VTY_NEWLINE);
|
vty_out (vty, " neighbor %s remote-as %u%s", addr, peer->as,
|
||||||
|
VTY_NEWLINE);
|
||||||
|
}
|
||||||
|
else if (peer->as_type == AS_INTERNAL)
|
||||||
|
{
|
||||||
|
vty_out (vty, " neighbor %s remote-as internal%s", addr, VTY_NEWLINE);
|
||||||
|
}
|
||||||
|
else if (peer->as_type == AS_EXTERNAL)
|
||||||
|
{
|
||||||
|
vty_out (vty, " neighbor %s remote-as external%s", addr, VTY_NEWLINE);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (peer->af_group[AFI_IP][SAFI_UNICAST])
|
if (peer->af_group[AFI_IP][SAFI_UNICAST])
|
||||||
vty_out (vty, " neighbor %s peer-group %s%s", addr,
|
vty_out (vty, " neighbor %s peer-group %s%s", addr,
|
||||||
|
Loading…
Reference in New Issue
Block a user