DMTF / YANG-to-Redfish-Converter

This tool converts a YANG model file to the corresponding Redfish schema, specified in OData CSDL, in accordance with the YANG-to-CSDL Mapping Specification.
Other
4 stars 5 forks source link

[VLAN model] Fault on Description statement within Type Statement #4

Closed tomasg2012 closed 6 years ago

tomasg2012 commented 6 years ago

As quoted:

(Converting ieee2-dot1x-vlans-0515.yang) ieee2-dot1x-vlans-0515-v01.yang.txt

$ python src/yang_to_csdl_tool.py --input yangs/ieee2-dot1x-vlans-0515-v01.yang --output-dir csdl/vlans
Traceback (most recent call last):
  File "src/yang_to_csdl_tool.py", line 157, in <module>
    execute(filename, args.output_grammar, args.target_dir, logger)
  File "src/yang_to_csdl_tool.py", line 56, in execute
    result = myparser.parse_text(content)
  File "C:\Users\jcleung\AppData\Local\Programs\Python\Python35-32\lib\site-packages\modgrammar\__init__.py", line 508, in parse_text
    for result in self._parse_text(string, bol, eof, data, matchtype):
  File "C:\Users\jcleung\AppData\Local\Programs\Python\Python35-32\lib\site-packages\modgrammar\__init__.py", line 455, in _parse_text
    count, obj = self._parse(pos, session, matchtype)
  File "C:\Users\jcleung\AppData\Local\Programs\Python\Python35-32\lib\site-packages\modgrammar\__init__.py", line 395, in _parse
    raise ParseError(self.grammar, self.text.string, errpos, char, line=line, col=col, expected=expected)
modgrammar.ParseError: [line 51, column 3] Expected 'type': Found 'description "utf'