Git Product home page Git Product logo

Comments (3)

tomasg2012 avatar tomasg2012 commented on July 21, 2024

These are not the v1_0_0 version namespace of the containers, just the base schema of it.

<Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="openconfig_acl.acl_set_top.acl_sets.acl_set.v1_0_0">
			<Annotation Term="Redfish.OwningEntity" String="DMTF"/>
			<Annotation Term="Redfish.Release" String="TBD"/>
			<Annotation Term="RedfishYang.key" String="name type"/>
			<Annotation Term="OData.Description" String="List of ACL sets, each comprising of a list of ACL entries."/>
			<Annotation Term="OData.LongDescription" String="List of ACL sets, each comprising of a list of ACL entries."/>
			<EntityType Name="acl_set" BaseType="openconfig_acl.acl_set_top.acl_sets.acl_set.acl_set">
				<Annotation Term="RedfishYang.NodeType" EnumMember="RedfishYang.NodeTypes/list"/>
				<Property Name="name" Type="Edm.String">
					<Annotation Term="RedfishYang.NodeType" EnumMember="RedfishYang.NodeTypes/leaf"/>
					<Annotation Term="RedfishYang.YangType" EnumMember="RedfishYang.YangTypes/leafref">
						<Annotation Term="RedfishYang.path" String="../config/name"/>
					</Annotation>
					<Annotation Term="OData.Description" String="Reference to the name list key."/>
					<Annotation Term="OData.LongDescription" String="Reference to the name list key."/>
					<Annotation Term="OData.Permissions" EnumMember="OData.Permission/Read"/>
				</Property>
				<Property Name="type" Type="Edm.String">
					<Annotation Term="RedfishYang.NodeType" EnumMember="RedfishYang.NodeTypes/leaf"/>
					<Annotation Term="RedfishYang.YangType" EnumMember="RedfishYang.YangTypes/leafref">
						<Annotation Term="RedfishYang.path" String="../config/type"/>
					</Annotation>
					<Annotation Term="OData.Description" String="Reference to the type list key."/>
					<Annotation Term="OData.LongDescription" String="Reference to the type list key."/>
					<Annotation Term="OData.Permissions" EnumMember="OData.Permission/Read"/>
				</Property>
				<NavigationProperty Name="configContainer" Type="config.config" ContainsTarget="true">
					<Annotation Term="OData.Permissions" EnumMember="OData.Permissions/Read"/>
					<Annotation Term="OData.Description" String="Navigation property that points to a resource of config."/>
					<Annotation Term="OData.LongDescription" String="Automatically generated."/>
					<Annotation Term="OData.AutoExpandReferences"/>
				</NavigationProperty>
				<NavigationProperty Name="stateContainer" Type="state.state" ContainsTarget="true">
					<Annotation Term="OData.Permissions" EnumMember="OData.Permissions/Read"/>
					<Annotation Term="OData.Description" String="Navigation property that points to a resource of state."/>
					<Annotation Term="OData.LongDescription" String="Automatically generated."/>
					<Annotation Term="OData.AutoExpandReferences"/>
				</NavigationProperty>
				<NavigationProperty Name="acl_entriesContainer" Type="acl_entries.acl_entries" ContainsTarget="true">
					<Annotation Term="OData.Permissions" EnumMember="OData.Permissions/Read"/>
					<Annotation Term="OData.Description" String="Navigation property that points to a resource of acl_entries."/>
					<Annotation Term="OData.LongDescription" String="Automatically generated."/>
					<Annotation Term="OData.AutoExpandReferences"/>
				</NavigationProperty>
			</EntityType>
		</Schema>

@mraineri is having an unversioned namespace required in all this or should the above generated just point directly to Resource.v1_0_0.Resource. i.e. remove BaseType="openconfig_acl.acl_set_top.acl_sets.acl_set.acl_set"> and replace with <BaseType="Resource.v1_0_0.Resource">

from yang-to-redfish-converter.

mraineri avatar mraineri commented on July 21, 2024

There will need to be both versioned and unversioned namespaces. For example:

The unversioned openconfig_acl.acl_set_top.acl_sets namespace will need to exist and contain the base entity type also named openconfig_acl.acl_set_top.acl_sets, which inherits from Resource.v1_0_0.Resource.

There will also need to be a openconfig_acl.acl_set_top.acl_sets.v1_0_0 namespace, which contains the entity openconfig_acl.acl_set_top.acl_sets.v1_0_0, which inherits from openconfig_acl.acl_set_top.acl_sets.openconfig_acl.acl_set_top.acl_sets.

from yang-to-redfish-converter.

jcleung5549 avatar jcleung5549 commented on July 21, 2024

Using the branch yang-2019, this is no longer an issue.

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.