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

YANG prefix unimplemented in CSDL #15

Closed seiferteric closed 5 years ago

seiferteric commented 6 years ago

I am using the yang-plugin branch and pyang. In the output I don't see the prefix. For example, converting openconfig-interfaces.yang I would expect to see "oc-if" as the module name.

tomasg2012 commented 6 years ago

From what I understand, only the xml attribute "Alias" is affected by the yang keyword 'prefix', and wouldn't affect the module name. If this is related to imports, then imports should satisfy this nicely.

tomasg2012 commented 6 years ago

Resolution with Network TF Meeting 8/24: Alias is correct, however is not employed properly with yang type definitions that exist within the module namespace. Double-check and correct this.

tomasg2012 commented 5 years ago

Closed, Alias is included but not supported by CSDL's type resolution outside of references/imports.