Details
-
Bug
-
Status: Resolved
-
Resolution: Done
-
None
-
None
-
None
-
None
-
Operating System: Mac OS
Platform: Macintosh
-
394
-
Low
Description
The following container definition which includes an extension with sub-statements is failing to parse.
container logrecords {
tailf:info "Shows logrecords information";
tailf:action show {
tailf:info "Shows the log records";
tailf:actionpoint logging-logrecord-show;
input {
leaf from
leaf to
{ type yang:date-and-time; default 2099-01-01T00:00:00-00:00; description "Shows the log records up to the given time"; } }
output {
leaf data
}
}
}
The problem is reported as follows:
[ERROR] yang-to-sources: Unable to parse yang files from /private/tmp/r/myartifactId/src/main/yang
org.opendaylight.yangtools.yang.parser.util.YangParseException:
Error in module 'atlas-logging' at line 241: missing '}' at 'tailf:actionpoint'
Error in module 'atlas-logging' at line 243: extraneous input 'input' expecting
Error in module 'atlas-logging' at line 255: extraneous input 'output' expecting {'}
', 'uses', 'typedef', 'status', 'reference', 'list', 'leaf-list', 'leaf', 'grouping', 'description', 'container', 'choice', 'anyxml', IDENTIFIER}
Attachments
Issue Links
- blocks
-
YANGTOOLS-108 Milestone : Bugfixing for Helium
- Resolved