]> git.puffer.fish Git - matthieu/frr.git/commitdiff
bgpd: bgp-no-as-fix.patch
authorDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 20 May 2015 01:29:17 +0000 (18:29 -0700)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 20 May 2015 01:29:17 +0000 (18:29 -0700)
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:

bgpd/bgpd.c

index 894b7c939b9f3cc0d32f4b3e13abe62c2dd9324a..14aa909cbb90db3911e26b44747608490ccbdba1 100644 (file)
@@ -5891,9 +5891,19 @@ bgp_config_write_peer (struct vty *vty, struct bgp *bgp,
        {
          if (! g_peer->as)
            {
-             if (g_peer->as_type == AS_SPECIFIED)
-               vty_out (vty, " neighbor %s remote-as %u%s", addr, peer->as,
-                        VTY_NEWLINE);
+             if (peer->as_type == AS_SPECIFIED)
+               {
+                 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])
            vty_out (vty, " neighbor %s peer-group %s%s", addr,