[CONTROLLER-1368] Restconf drops namespace for target-rib type (BGP application peer config) Created: 11/Jun/15 Updated: 16/Jun/15 Resolved: 16/Jun/15 |
|
| Status: | Verified |
| Project: | controller |
| Component/s: | config |
| Affects Version/s: | Lithium |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | Vratko Polak | Assignee: | Maros Marsalek |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Operating System: All |
||
| External issue ID: | 3675 |
| Description |
|
Here is the link describing how to configure application RIB: https://wiki.opendaylight.org/view/BGP_LS_PCEP:User_Guide#BGP_Application_Peer When the data is added to 41-example-bgp.xml config file, module is created correctly. But if restconf PUT is used to create (or update) the module, using the following command: it returns http status 500. Here is segment of karaf.log: 2015-06-11 13:39:39,719 | WARN | oupCloseable-6-1 | NetconfDeviceCommunicator | 240 - org.opendaylight.controller.sal-netconf-connector - 1.2.0.SNAPSHOT | RemoteDevice {controller-config}: Error reply from remote device, request: <rpc message-id="m-2" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"> The log shows <type>rib-instance</type>, which would explain which value was not prefixed, but the curl command did have prefix there: <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:rib-instance</type> |
| Comments |
| Comment by Maros Marsalek [ 11/Jun/15 ] |
|
Looks like config fails to extract default namespace for identityrefs after recent update to identityref serialization (prefix is left out if possible). |
| Comment by Maros Marsalek [ 11/Jun/15 ] |
| Comment by Vratko Polak [ 16/Jun/15 ] |
|
Verified to be fixed on Lithium RC1 2015-06-16 build. The PUT curl from description does replace config as expected. |