[BGPCEP-747] BGP Prefix SID is not announced to iBGP peer Created: 17/Jan/18  Updated: 23/Aug/18

Status: Open
Project: bgpcep
Component/s: BGP
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Medium
Reporter: Marek Gradzki Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: File bgp_prefix_sid.pcap     Zip Archive node1_log.zip     Zip Archive node2_log.zip     File odl-bgp-prefix-sid.json    

 Description   

On my machine I have two karaf instances running iBGP peers.

I create application peer on Node2 and program following route:

PUT

http://localhost:8182/restconf/config/bgp-rib:application-rib/192.168.1.10/tables/bgp-types:ipv4-address-family/bgp-labeled-unicast:labeled-unicast-subsequent-address-family/bgp-labeled-unicast:labeled-unicast-routes/labeled-unicast-route/route/1

 

{

  "bgp-labeled-unicast:labeled-unicast-route": [

    {

      "path-id": 1,

      "route-key": "route",

      "attributes": {

        "local-pref":

{           "pref": 100         }

,

        "bgp-prefix-sid": {

          "bgp-prefix-sid-tlvs": [

           

{               "label-index-tlv": 4             }

,

            {

              "srgb-value": [

               

{                   "range": 8000,                   "base": 16000                 }

              ]

            }

          ]

        },

        "ipv4-next-hop":

{           "global": "10.23.1.3"         }

,

        "as-path": {},

        "origin":

{           "value": "igp"         }

      },

      "label-stack": [

       

{           "label-value": 16002         }

      ],

      "prefix": "10.100.1.4/24"

    }

  ]

}

 

It is written to LocRib on Node2:

GET http://localhost:8182/restconf/operational/bgp-rib:bgp-rib/rib/bgp-example/loc-rib

 

Same route is visible in adj-rib-out:

GET http://localhost:8182/restconf/operational/bgp-rib:bgp-rib/rib/bgp-example/peer/bgp:%2F%2F192.168.1.1/adj-rib-out

 

But adj-rib-in on Node1 is missing bgp-refix-sid attribute:

GET http://localhost:8181/restconf/operational/bgp-rib:bgp-rib/rib/bgp-example/peer/bgp:%2F%2F192.168.1.2/adj-rib-in

(…)

      {

        "afi": "bgp-types:ipv4-address-family",

        "safi": "bgp-labeled-unicast:labeled-unicast-subsequent-address-family",

        "bgp-labeled-unicast:labeled-unicast-routes": {

          "labeled-unicast-route": [

            {

              "path-id": 1,

              "route-key": "AAAAATAD6CEKZAE=",

              "attributes": {

                "local-pref":

{                   "pref": 100                 }

,

                "ipv4-next-hop":

{                   "global": "10.23.1.3"                 }

,

                "as-path": {},

                "origin":

{                   "value": "igp"                 }

              },

              "label-stack": [

                

{                   "label-value": 16002                 }

              ],

              "prefix": "10.100.1.0/24"

            }

          ]

        },

        "attributes":

{           "uptodate": true         }

      }

(…)

 

Also it is not written to loc-rib on Node1.

After lookig at the logs (attached), it looks like

both BGPMessageToByteEncoder on Node2

and BGPByteToMessageDecoder on Node1

report the same binary representation of BGP update that was sent.

 

But while BGPMessageToByteEncoder on Node2 logs bgp-prefix-sid attributes,

BGPUpdateMessageParser on Node1 does not.

 

Is it a bug or my configuration is invalid?

 



 Comments   
Comment by Marek Gradzki [ 17/Jan/18 ]

Issue was observed using nitrogen sr1.

Generated at Wed Feb 07 19:14:00 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.