]> git.puffer.fish Git - mirror/frr.git/commitdiff
bgpd: fix 4-byte AS display in bestpath-from-AS 1261/head
authorDaniel Walton <dwalton@cumulusnetworks.com>
Wed, 27 Sep 2017 16:07:24 +0000 (16:07 +0000)
committerDaniel Walton <dwalton@cumulusnetworks.com>
Wed, 27 Sep 2017 16:07:24 +0000 (16:07 +0000)
Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com>
Before
======
cel-redxp-10# show ip bgp 20.1.3.0/24
BGP routing table entry for 20.1.3.0/24
Paths: (1 available, best #1, table Default-IP-Routing-Table)
  Advertised to non peer-group peers:
  top1(10.1.1.2) bottom0(20.1.2.2)
  4294967292
    20.1.2.2 from bottom0(20.1.2.2) (20.1.1.1)
      Origin IGP, metric 0, localpref 100, valid, external,
bestpath-from-AS -4, best
      Community: 99:1
      AddPath ID: RX 0, TX 92
      Last update: Wed Sep 27 16:02:34 2017

cel-redxp-10#

After
=====
cel-redxp-10# show ip bgp 20.1.3.0/24
BGP routing table entry for 20.1.3.0/24
Paths: (1 available, best #1, table Default-IP-Routing-Table)
  Advertised to non peer-group peers:
  bottom0(20.1.2.2)
  4294967292
    20.1.2.2 from bottom0(20.1.2.2) (20.1.1.1)
      Origin IGP, metric 0, localpref 100, valid, external,
bestpath-from-AS 4294967292, best
      Community: 99:1
      AddPath ID: RX 0, TX 2
      Last update: Wed Sep 27 16:07:09 2017

cel-redxp-10#

bgpd/bgp_route.c

index 44b3c5c348565ac4eda6178808f571e2ae4a5bac..d8bae62df1dae136cc140d146fd837dabd239200 100644 (file)
@@ -7841,7 +7841,7 @@ void route_vty_out_detail(struct vty *vty, struct bgp *bgp, struct prefix *p,
                                                    "bestpathFromAs", first_as);
                        } else {
                                if (first_as)
-                                       vty_out(vty, ", bestpath-from-AS %d",
+                                       vty_out(vty, ", bestpath-from-AS %u",
                                                first_as);
                                else
                                        vty_out(vty,