Git Product home page Git Product logo

Comments (5)

tomasg2012 avatar tomasg2012 commented on August 22, 2024

Could you specify a particular file converted that this occurs on, which resulting properties it is the issue? If not able to be uploaded in a zip, point to its source online.

from yang-to-redfish-converter.

seiferteric avatar seiferteric commented on August 22, 2024

https://github.com/openconfig/public/blob/master/release/models/interfaces/openconfig-interfaces.yang . I only noticed the issue when taking the resultant csdl and trying to use the csdl to json schema converter. It complains about having no type defined for the properties and so it skips them.

For example, mtu in the yang:

    leaf mtu {
      type uint16;
      description
        "Set the max transmission unit size in octets
        for the physical interface.  If this is not set, the mtu is
        set to the operational default -- e.g., 1514 bytes on an
        Ethernet interface.";
}

And the outputted csdl:

				<Property Name="mtu">
					<Annotation Term="RedfishYang.NodeType" EnumMember="RedfishYang.NodeTypes/leaf"/>
					<Annotation Term="OData.Permissions" EnumMember="OData.Permission/Read"/>
				</Property>

from yang-to-redfish-converter.

tomasg2012 avatar tomasg2012 commented on August 22, 2024

I think one of the greater issues here is that the plugin currently doesn't have any programming catering the "grouping" tag, so the behavior may not be ideal. Otherwise, this issue will be addressed.

from yang-to-redfish-converter.

tomasg2012 avatar tomasg2012 commented on August 22, 2024

Grouping and missing type information has been improved, will doublecheck these files.

from yang-to-redfish-converter.

tomasg2012 avatar tomasg2012 commented on August 22, 2024

Resolution with Network TF Meeting 8/24: Closing as this appears to be fixed.

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.