]> git.proxmox.com Git - mirror_frr.git/commit
bgpd: AS paths are uint32_t instead of integers
authorDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 9 Oct 2019 20:10:44 +0000 (16:10 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Tue, 15 Oct 2019 17:15:45 +0000 (13:15 -0400)
commit931066c074e48178f7c23ff6a83c4488403c53ef
tree571f6cea39d508a426d44f8fe2cd42a3cc9052be
parentc9df216851a5d2de17ed61eb2ae992c854cea43f
bgpd: AS paths are uint32_t instead of integers

We have some JSON output that was displaying high order
AS path data as negative numbers:

{
 "paths":[
    {
      "aspath":{
        "string":"4200010118 4200010000 20473 1299",
        "segments":[
          {
            "type":"as-sequence",
            "list":[
              -94957178,
              -94957296,
              20473,
              1299
            ]
          }
        ],

Notice "String" output -vs- the list.

With fixed code:

  "paths":[
    {
      "aspath":{
        "string":"64539 4294967000 15096 6939 7922 7332 4249",
        "segments":[
          {
            "type":"as-sequence",
            "list":[
              64539,
              4294967000,
              15096,
              6939,
              7922,
              7332,
              4249
            ]
          }
        ],

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
bgpd/bgp_aspath.c