[CONTROLLER-1197] Restconf RPC: XML sub-element namespace error when top-level namespace is specified Created: 12/Mar/15 Updated: 19/Oct/17 Resolved: 14/May/15 |
|
| Status: | Resolved |
| Project: | controller |
| Component/s: | restconf |
| Affects Version/s: | Helium |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | Vratko Polak | 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: | 2833 |
| Description |
|
https://wiki.opendaylight.org/view/BGP_LS_PCEP:Programmer_Guide#Creating_LSP_2 This format looks like it should also work on Helium, but it leads to an error on sub-element "lsp": Analogous error is present also in master branch, but Helium-SR3 has deadline sooner. |
| Comments |
| Comment by Tony Tkacik [ 12/Mar/15 ] |
|
Is the lsp element augmented to the input or it is from pcep model? |
| Comment by Vratko Polak [ 13/Mar/15 ] |
|
(In reply to Tony Tkacik from comment #1) Augmented. Here are top-level and sub-level elements used: Original Helium guide (works correctly): Current Lithium guide (this bug): And todays news: it works again when :stateful after xmlns is removed (future Lithium guide I guess): Strange thing is that there is also another sub-element (same level as arguments) which does not have problem with namespace alias: As the "future Lithium guide" way works also for master branch builds, I am decreasing importance to Minor. |
| Comment by Tony Tkacik [ 12/May/15 ] |
|
Namespace aliasing is not problem: <network-topology-ref xmlns:topo="urn:TBD:params:xml:ns:yang:network-topology">/topo:network-topology/topo:topology[topo:topology-id="pcep-topology"]</network-topology-ref> network-topology-ref is from default namespace of parent - urn:opendaylight:params:xml:ns:yang:topology:pcep xmlns:topo="urn:TBD:params:xml:ns:yang:network-topology" is only used in instance identifier and not on XML Elements. |
| Comment by Vratko Polak [ 14/May/15 ] |
|
So, the bug was in the previous guide, |
| Comment by Tony Tkacik [ 14/May/15 ] |
|
Seems so |