[BGPCEP-672] ipv4-routes in remote peer's adj-rib-out do not contain path-id Created: 17/May/17 Updated: 20/Jul/21 Resolved: 22/Jan/18 |
|
| Status: | Verified |
| Project: | bgpcep |
| Component/s: | BGP |
| Affects Version/s: | Bugzilla Migration |
| Fix Version/s: | Oxygen |
| Type: | Bug | ||
| Reporter: | Marek Gradzki | Assignee: | Claudio David Gasparini |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Operating System: All |
||
| Attachments: |
|
| External issue ID: | 8481 |
| Priority: | Normal |
| Description |
|
Following http://docs.opendaylight.org/en/stable-boron/user-guide/bgp-user-guide.html, I configured 1) bgp instance <protocol xmlns="http://openconfig.net/yang/network-instance"> 2) remote peer <neighbor xmlns="urn:opendaylight:params:xml:ns:yang:bgp:openconfig-extensions"> 3) started remote peer java -jar ./target/bgp-testtool-0.6.3-Boron-SR3-executable.jar -ra 127.0.0.1:1790 -la 127.0.0.2:17900 -pr 2 -ll DEBUG --active true -as 65000 4) application peer <neighbor xmlns="urn:opendaylight:params:xml:ns:yang:bgp:openconfig-extensions"> 5) ipv4 route <ipv4-route xmlns="urn:opendaylight:params:xml:ns:yang:bgp-inet"> But when I try to read peer's adj-rib-out, I get: <adj-rib-out xmlns="urn:opendaylight:params:xml:ns:yang:bgp-rib"> This causes troubles for Honeycomb, because such data cannot be transformed to BA as path-id is part of route's key. |
| Comments |
| Comment by Marek Gradzki [ 17/May/17 ] |
|
Here is exception we get in hc while reading ipv4 routes: java.lang.NullPointerException: Supplied value may not be null Full trace attached. |
| Comment by Marek Gradzki [ 17/May/17 ] |
|
Attachment honeycomb.log has been added with description: honeycomb.log |
| Comment by Marek Gradzki [ 17/May/17 ] |
|
path-id is written to DS if ADD-PATH is configured: http://docs.opendaylight.org/en/stable-boron/user-guide/bgp-user-guide.html#additional-path |
| Comment by Yrineu Felipe Rodrigues [ 21/Sep/17 ] |
|
At step 4) you're trying to advertise a route without an ASN, that's correct? |
| Comment by Marek Gradzki [ 17/Jan/18 ] |
|
Not sure if I understand your question. At step 4) I configure application peer. Then, in step 5), I configure route. Requests were taken from ODL docs. But this is not that relevant.
Underlying issue here is that path-id is part of ipv4-route's key: https://github.com/opendaylight/bgpcep/blob/stable/nitrogen/bgp/inet/src/main/yang/bgp-inet.yang#L66 And it is not filled if add-path was not configured (e.g. because peer does not support it). Mdsal's codecs reject to deserialize such data, which is expected behavior, because key is missing...
In my opinion BGP should always write path-id to DS. Then some filter should be applied to remove ADD-PATH attribute (if peer does not support it), before it is encoded to BGP message.
|
| Comment by Claudio David Gasparini [ 19/Jan/18 ] |
|
Bug confirmed. Based on https://tools.ietf.org/html/rfc6020#section-7.8.2. |
| Comment by Claudio David Gasparini [ 22/Jan/18 ] |
|
https://git.opendaylight.org/gerrit/#/q/topic:BGPCEP-672+(status:open+OR+status:merged) |