[CONTROLLER-1281] Unable to configure a BGP peer through RESTCONF Created: 27/Apr/15 Updated: 19/Oct/17 Resolved: 29/Apr/15 |
|
| Status: | Resolved |
| Project: | controller |
| Component/s: | netconf |
| Affects Version/s: | Post-Helium |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | Jozef Behran | Assignee: | Unassigned |
| Resolution: | Cannot Reproduce | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Operating System: All |
||
| External issue ID: | 3070 |
| Priority: | Normal |
| Description |
|
Any attempt to add a BGP peer through RESTCONF will be rejected. Steps to reproduce: 1. ODL_ROOT=<where_yourODL_installation_lives> You will get the following error from the command in step 5: { ] No errors will be logged into the logs. Note also that I suspect this might be just a different symptom of |
| Comments |
| Comment by Jozef Behran [ 27/Apr/15 ] |
|
This bug prevents the test scenario described at https://wiki.opendaylight.org/view/BGP_LS_PCEP:Lithium_Feature_Tests#How_to_test_2. This blocks completion of M5 as described here: https://wiki.opendaylight.org/view/Simultaneous_Release:Lithium_Release_Plan (section "Schedule", the row labelled "M5" in the big table). Setting to "Highest" importance as the deadline is in just a few days. |
| Comment by Maros Marsalek [ 28/Apr/15 ] |
|
The input is incorrect. All the xml elements (except type and name) are missing correct namespace from bgp model. Try with correct namespaces. |
| Comment by RichardHill [ 28/Apr/15 ] |
|
The namespaces are described here: https://wiki.opendaylight.org/view/BGP_LS_PCEP:User_Guide#Configuration_through_RESTCONF There is also a directive "It is vital that you respect the order of steps described in user guide." which requires configuring RIB first. |
| Comment by Vratko Polak [ 28/Apr/15 ] |
|
> The namespaces are described here: I can tentatively confirm that using bgp-peer configuration data as presented in https://wiki.opendaylight.org/view/BGP_LS_PCEP:User_Guide#BGP_listener For example this curl: Leads to this response (code 400): ]}} Replacing "Ebgp" with "ebgp" leads to another response (code 500): ]}} Neither POST generates anything in karaf.log, which is itself a minor bug. |
| Comment by Maros Marsalek [ 28/Apr/15 ] |
|
This bug was opened due to following error when posting config without namespaces: { ] Which is correct error response to invalid input. I believe this should be closed as its unrelated to 3069 (enum leaves parse/serialize) |
| Comment by Vratko Polak [ 28/Apr/15 ] |
|
> This bug was opened due to following error when posting config without Fair enough. |
| Comment by Jozef Behran [ 29/Apr/15 ] |
|
Fixed wiki to make this point crystal clear so I won't get confused anymore. The "correct namespace for every element" version works, now the remaining thing to confirm is to see whether the (re)configured peer also works. |