[CONTROLLER-141] NPE when accessing linkstate BGP-RIB Created: 28/Jan/14 Updated: 25/Jul/23 Resolved: 26/Feb/14 |
|
| Status: | Resolved |
| Project: | controller |
| Component/s: | restconf |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | Robert Varga | Assignee: | Unassigned |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Operating System: Linux |
||
| External issue ID: | 383 |
| Description |
|
With default SP edition configuration (centralized integration build #152), trying to access http://localhost:8080/restconf/operational/bgp-rib:bgp-rib/rib/example-bgp-rib/loc-rib/tables/bgp-ls:linkstate-address-family/bgp-ls:linkstate-subsequent-address-family/linkstate-routes results in following stack trace to be reported: java.lang.NullPointerException |
| Comments |
| Comment by Jozef Gloncak [ 11/Feb/14 ] |
|
Can you specify yang module which you used? I tried to find module bgp-rib in controller but I found nothing. |
| Comment by Jozef Gloncak [ 11/Feb/14 ] |
|
Yang file with module bgp-rib was found in bgpcep project by Laco Borak. |
| Comment by Jozef Gloncak [ 14/Feb/14 ] |
|
This null pointer exception was caused because key values of list
It is supposed that prefix part of value (in this case bgp-ls) represents name of module and not prefix which is specified in YANG module. Working URI should be like |
| Comment by Jozef Gloncak [ 14/Feb/14 ] |
|
Raising of exception for case when key value can't be resolved Change-Id: I6343d98e6549c02906628c78f61f97c18b244fe4 |
| Comment by Jozef Gloncak [ 24/Feb/14 ] |
|
The fix isn't merged yet |