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:
Donald Sharp 2015-05-19 18:29:17 -07:00
parent 2c03148e87
commit 84f04a6d0f

View File

@ -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,