Git Product home page Git Product logo

Comments (5)

tomasg2012 avatar tomasg2012 commented on August 22, 2024

This is an issue I had come across but hadn't done research on what the keywords actually meant, since they were not prefixed by any yang keywords. It seems pyang spits out something different as a result, but I don't know exactly why or what I'm supposed to do with it.

But in particular, what does the keyword mean? From what I'm reading, it has to do with language extensions? Does pyang support this, and should the converter in spite of that?

from yang-to-redfish-converter.

dorado18 avatar dorado18 commented on August 22, 2024

'openconfig-extensions' is a module defined in openconfig-extensions.yang. Maybe this module is not being parsed correctly in the 'import' statement ?

When reaching "/home/ipedasia/prjs/swo/YANG-to-Redfish-Converter/YANG-to-Redfish-Plugin/rf/csdltree.py", line 335, 'yang_keyword' variable has as value a tuple ('openconfig-extensions', 'openconfig-version')

I don't know pyang nor the yang to csdl specification enough to answer your last questions.

Thanks

from yang-to-redfish-converter.

tomasg2012 avatar tomasg2012 commented on August 22, 2024

I think it's clearly being imported seeing as the alias is properly parsed, but I'll have to do research to see if pyang is doing anything more about it, and what's contained in the conversion spec. Do you know if this format of "importname:importitem" in Yang files as a Keyword subsititute is only to deal with extensions?

I will report back or contact @jcleung5549 for more info about how to handle extensions. I believe they can be treated like a csdl Annotation with an enum.

e.g. <Annotation "YangCustom.Keyword" "oc_ext/openconfig_version">, where the latter is the extension generated as an enum for a term. A more complicated mockup may be necessary, and the spec must be checked.

from yang-to-redfish-converter.

tomasg2012 avatar tomasg2012 commented on August 22, 2024

Should perform better on the latest branch yang-plugin, along with e-mail based issues.

from yang-to-redfish-converter.

jcleung5549 avatar jcleung5549 commented on August 22, 2024

The latest update doesn't exhibit this problem. See issue #19 for the output from a current execution. Changed 'label' to "fixed". Issue originator should "close" issue, if satisfied.

from yang-to-redfish-converter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.