]> git.puffer.fish Git - matthieu/frr.git/commitdiff
BGP: "remote-as internal" need not be displayed if peer is member of
authorDaniel Walton <dwalton@cumulusnetworks.com>
Wed, 21 Oct 2015 12:28:28 +0000 (12:28 +0000)
committerDaniel Walton <dwalton@cumulusnetworks.com>
Wed, 21 Oct 2015 12:28:28 +0000 (12:28 +0000)
peer-group

Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com>
Reviewed-by: Donald Sharp <sharpd@cumulusnetworks.com>
Ticket: CM-7744

bgpd/bgpd.c

index 5d7a0cb775389b338d92e19f1409020e4d1dc721..3711c8fbd11b434300f01c5862c991b3b97d4daa 100644 (file)
@@ -6231,7 +6231,7 @@ bgp_config_write_peer_global (struct vty *vty, struct bgp *bgp,
     }
   else
     {
-      if (! g_peer->as)
+      if (g_peer->as_type == AS_UNSPECIFIED)
         {
           if (peer->as_type == AS_SPECIFIED)
             {