[YANGTOOLS-532] YIN generation failed on openflow-protocol module Created: 20/Oct/15 Updated: 10/Apr/22 Resolved: 03/Nov/15 |
|
| Status: | Resolved |
| Project: | yangtools |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | Daniel Malachovsky | Assignee: | Peter Kajsa |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Operating System: All |
||
| Attachments: |
|
| External issue ID: | 4504 |
| Priority: | Normal |
| Description |
|
YIN generated from openflow-protocol module is incomplete. See attachment. How to reproduce:
End of XML looks like: <notification name="error-message"> Other openflow-* YIN are generated fine, but openflow-protocol is fairly big, so maybe that's the issue. |
| Comments |
| Comment by Daniel Malachovsky [ 20/Oct/15 ] |
|
Attachment openflow-protocol.xml has been added with description: Response from /restconf/modules/module/openflow-protocol/2013-07-31/schema |
| Comment by Martin Ciglan [ 21/Oct/15 ] |
|
karaf log at the time of request: Caused by: javax.xml.stream.XMLStreamException: Prefix cannot be null |
| Comment by Martin Ciglan [ 21/Oct/15 ] |
|
I took relevant set of YANG models from openflowjava & ietf and export them via yang-model-export to YIN without any issue. I'll try to debug it further more... |
| Comment by Martin Ciglan [ 22/Oct/15 ] |
|
my latest findings while debugging mentioned request: namespace: "urn:opendaylight:yang:extension:yang-ext"" In XMLStreamWriterImpl.writeStartElement() and then NamespaceContextImpl.getPrefix(namespaceURI) returns null as we can observe in log. I can't see mentioned namespace in collection where look-up occurs: 0 = {java.lang.String@13663} "xml" "http://www.w3.org/XML/1998/namespace" "xmlns" "http://www.w3.org/2000/xmlns/" 5 = {java.lang.String@13098} "urn:ietf:params:xml:ns:yang:yin:1" 6 = {java.lang.String@13195} "" "urn:ietf:params:xml:ns:yang:yin:1" "yang" "urn:ietf:params:xml:ns:yang:ietf-yang-types" "oxm" "urn:opendaylight:openflow:oxm" "oft" "urn:opendaylight:openflow:common:types" "ofinstruction" "urn:opendaylight:openflow:common:instruction" "ofproto" "urn:opendaylight:openflow:protocol" "ofaction" "urn:opendaylight:openflow:common:action" It needs further investigation. |
| Comment by Peter Kajsa [ 28/Oct/15 ] |
| Comment by Daniel Malachovsky [ 30/Oct/15 ] |
|
Tested the fix, export works correctly now. |