[CONTROLLER-810] getting XML from RESTCONF results in unreadable namespaces (zdef#) Created: 11/Sep/14 Updated: 17/Oct/14 Resolved: 17/Oct/14 |
|
| Status: | Resolved |
| Project: | controller |
| Component/s: | restconf |
| Affects Version/s: | Helium |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | Colin Dixon | Assignee: | Tony Tkacik |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Operating System: Mac OS |
||
| Issue Links: |
|
||||||||
| External issue ID: | 1818 | ||||||||
| Description |
|
For example fetching the TTP XML from RESTCONF starts like this: GET http://localhost:8181/restconf/config/onf-ttp:opendaylight-ttps/onf-ttp:table-type-patterns/ <zdef-178745529:table-type-patterns xmlns:zdef-178745529="urn:onf:ttp"> After posting this: PUT: http://localhost:8181/restconf/config/onf-ttp:opendaylight-ttps/onf-ttp:table-type-patterns/ { , { "var": "<group_entry_types/name>", "doc": [ "An OpenFlow group identifier (integer) identifying a group table entry", "of the type indicated by the variable name" ] } ] The number after zdef appears to be random and changes on every request making simple comparisons impossible in addition to very user unfriendly. |
| Comments |
| Comment by Tony Tkacik [ 12/Sep/14 ] |
|
This is more of consmetic issue. zdef- namespaces were introduced when we switched to XMLStream APIs for streaming content from datastore, instead of creating xml and then sending it. zdef- namespaces are introduced by isNamespaceRepairing flag, which checks This Yangtools patchset will remove zdef for all elements except root of the mountpoint https://git.opendaylight.org/gerrit/#/c/11109/ This patchset will remove zdef for mountpoints and turn off namespace repairing function from XMLStreamWriter API (which will increase performance): The controller patch needs to be merged after yangtools one. |