You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This may be out of scope, but I'm working with Redfish data from Dell, and reflect_entities is not correctly loading the entities available.
From digging into this, it appears to be because DMTF/Redfish has broken their metadata up into many subfiles included by reference, and then entity containers just "extend" containers from these reference files.
Is it feasible to be able to load and cache these references when building the entities list? Or is something with a scope as large as this better off with an offline generation of service specific python classes?
<?xml version="1.0" encoding="UTF-8"?>
<!----><!--################################################################################ --><!-- # Redfish Schema: ServiceRoot v1.0.2 --><!-- # --><!--# For a detailed change log, see the README file contained in the DSP8010 bundle, --><!--# available at http://www.dmtf.org/standards/redfish --><!--# Copyright 2014-2016 Distributed Management Task Force, Inc. (DMTF). --><!--# For the full DMTF copyright policy, see http://www.dmtf.org/about/policies/copyright --><!--################################################################################ --><!---->
<edmx:Edmxxmlns:edmx="http://docs.oasis-open.org/odata/ns/edmx"Version="4.0">
<edmx:ReferenceUri="http://docs.oasis-open.org/odata/odata/v4.0/cs01/vocabularies/Org.OData.Core.V1.xml">
<edmx:IncludeNamespace="Org.OData.Core.V1"Alias="OData" />
</edmx:Reference>
<edmx:ReferenceUri="/redfish/v1/Schemas/Resource_v1.xml">
<edmx:IncludeNamespace="Resource" />
<edmx:IncludeNamespace="Resource.v1_0_0" />
</edmx:Reference>
<edmx:ReferenceUri="/redfish/v1/Schemas/RedfishExtensions_v1.xml">
<edmx:IncludeNamespace="RedfishExtensions.v1_0_0"Alias="Redfish" />
<edmx:IncludeNamespace="Validation.v1_0_0"Alias="Validation" />
</edmx:Reference>
<edmx:ReferenceUri="/redfish/v1/Schemas/EventService_v1.xml">
<edmx:IncludeNamespace="EventService" />
</edmx:Reference>
<edmx:ReferenceUri="/redfish/v1/Schemas/AccountService_v1.xml">
<edmx:IncludeNamespace="AccountService" />
</edmx:Reference>
<edmx:ReferenceUri="/redfish/v1/Schemas/ComputerSystemCollection_v1.xml">
<edmx:IncludeNamespace="ComputerSystemCollection" />
</edmx:Reference>
<edmx:ReferenceUri="/redfish/v1/Schemas/ChassisCollection_v1.xml">
<edmx:IncludeNamespace="ChassisCollection" />
</edmx:Reference>
<edmx:ReferenceUri="/redfish/v1/Schemas/ManagerCollection_v1.xml">
<edmx:IncludeNamespace="ManagerCollection" />
</edmx:Reference>
<edmx:ReferenceUri="/redfish/v1/Schemas/TaskService_v1.xml">
<edmx:IncludeNamespace="TaskService" />
</edmx:Reference>
<edmx:ReferenceUri="/redfish/v1/Schemas/SessionService_v1.xml">
<edmx:IncludeNamespace="SessionService" />
</edmx:Reference>
<edmx:ReferenceUri="/redfish/v1/Schemas/Message_v1.xml">
<edmx:IncludeNamespace="Message" />
</edmx:Reference>
<edmx:ReferenceUri="/redfish/v1/Schemas/JsonSchemaFileCollection_v1.xml">
<edmx:IncludeNamespace="JsonSchemaFileCollection" />
</edmx:Reference>
<edmx:ReferenceUri="/redfish/v1/Schemas/MessageRegistryFileCollection_v1.xml">
<edmx:IncludeNamespace="MessageRegistryFileCollection" />
</edmx:Reference>
<edmx:ReferenceUri="/redfish/v1/Schemas/SessionCollection_v1.xml">
<edmx:IncludeNamespace="SessionCollection" />
</edmx:Reference>
<edmx:DataServices>
<Schemaxmlns="http://docs.oasis-open.org/odata/ns/edm"Namespace="ServiceRoot">
<EntityTypeName="ServiceRoot"BaseType="Resource.v1_0_0.Resource"Abstract="true">
<AnnotationTerm="OData.Description"String="This resource represents the root of the Redfish service, located at the \redfish\v1 URI. As a hypermedia API, all other resources accessible through the Redfish interface on this device are linked directly or indirectly from the Service Root." />
<AnnotationTerm="OData.LongDescription"String="This object represents the root Redfish service. All values for resources described by this schema shall comply to the requirements as described in the Redfish specification." />
</EntityType>
</Schema>
<Schemaxmlns="http://docs.oasis-open.org/odata/ns/edm"Namespace="ServiceRoot.v1_0_0">
<EntityContainerName="ServiceContainer">
<SingletonName="Service"Type="ServiceRoot.ServiceRoot" />
<SingletonName="Systems"Type="ComputerSystemCollection.ComputerSystemCollection" />
<SingletonName="Chassis"Type="ChassisCollection.ChassisCollection" />
<SingletonName="Managers"Type="ManagerCollection.ManagerCollection" />
<SingletonName="Tasks"Type="TaskService.TaskService" />
<SingletonName="AccountService"Type="AccountService.AccountService" />
<SingletonName="SessionService"Type="SessionService.SessionService" />
<SingletonName="EventService"Type="EventService.EventService" />
<SingletonName="Registries"Type="MessageRegistryFileCollection.MessageRegistryFileCollection" />
<SingletonName="JsonSchemas"Type="JsonSchemaFileCollection.JsonSchemaFileCollection" />
<SingletonName="Sessions"Type="SessionCollection.SessionCollection" />
</EntityContainer>
<EntityTypeName="ServiceRoot"BaseType="ServiceRoot.ServiceRoot">
<AnnotationTerm="OData.Description"String="This object represents the root Redfish service." />
<AnnotationTerm="OData.LongDescription"String="This object represents the root Redfish service. All values for resources described by this schema shall comply to the requirements as described in the Redfish specification." />
<PropertyName="RedfishVersion"Type="Edm.String"Nullable="false">
<AnnotationTerm="OData.Permissions"EnumMember="OData.Permission/Read" />
<AnnotationTerm="OData.Description"String="The version of the Redfish service" />
<AnnotationTerm="OData.LongDescription"String="The value of this string shall represent the version of the Redfish service. The format of this string shall be of the format majorversion.minorversion.errata in compliance with Protocol Version section of the Redfish specification. " />
<AnnotationTerm="Validation.Pattern"String="^\\d+\\.\\d+\\.\\d+$" />
</Property>
<PropertyName="UUID"Type="Resource.UUID">
<AnnotationTerm="OData.Permissions"EnumMember="OData.Permission/Read" />
<AnnotationTerm="OData.Description"String="Unique identifier for a service instance. When SSDP is used, this value should be an exact match of the UUID value returned in a 200OK from an SSDP M-SEARCH request during discovery. " />
<AnnotationTerm="OData.LongDescription"String="The value of this string shall represent the id of the Redfish service instance. The format of this string shall be a 32-byte value in the form 8-4-4-4-12. If SSDP is used, this value shall be an exact match of the UUID value returned in a 200OK from an SSDP M-SEARCH request during discovery. RFC4122 describes methods that can be used to create a UUID value. The value should be considered to be opaque. Client software should only treat the overall value as a universally unique identifier and should not interpret any sub-fields within the UUID." />
</Property>
<NavigationPropertyName="Systems"Type="ComputerSystemCollection.ComputerSystemCollection"Nullable="false">
<AnnotationTerm="OData.Permissions"EnumMember="OData.Permission/Read" />
<AnnotationTerm="OData.Description"String="This is a link to a collection of Systems." />
<AnnotationTerm="OData.LongDescription"String="This object shall only contain a reference to a collection of resources that comply to the Systems schema." />
<AnnotationTerm="OData.AutoExpandReferences" />
</NavigationProperty>
<NavigationPropertyName="Chassis"Type="ChassisCollection.ChassisCollection"Nullable="false">
<AnnotationTerm="OData.Permissions"EnumMember="OData.Permission/Read" />
<AnnotationTerm="OData.Description"String="This is a link to a collection of Chassis." />
<AnnotationTerm="OData.LongDescription"String="This object shall only contain a reference to a collection of resources that comply to the Chassis schema." />
<AnnotationTerm="OData.AutoExpandReferences" />
</NavigationProperty>
<NavigationPropertyName="Managers"Type="ManagerCollection.ManagerCollection"Nullable="false">
<AnnotationTerm="OData.Permissions"EnumMember="OData.Permission/Read" />
<AnnotationTerm="OData.Description"String="This is a link to a collection of Managers." />
<AnnotationTerm="OData.LongDescription"String="This object shall only contain a reference to a collection of resources that comply to the Managers schema." />
<AnnotationTerm="OData.AutoExpandReferences" />
</NavigationProperty>
<NavigationPropertyName="Tasks"Type="TaskService.TaskService"Nullable="false">
<AnnotationTerm="OData.Permissions"EnumMember="OData.Permission/Read" />
<AnnotationTerm="OData.Description"String="This is a link to the Task Service." />
<AnnotationTerm="OData.LongDescription"String="The classes structure shall only contain a reference to a resource that complies to the TaskService schema." />
<AnnotationTerm="OData.AutoExpandReferences" />
</NavigationProperty>
<NavigationPropertyName="SessionService"Type="SessionService.SessionService"Nullable="false">
<AnnotationTerm="OData.Permissions"EnumMember="OData.Permission/Read" />
<AnnotationTerm="OData.Description"String="This is a link to the Sessions Service." />
<AnnotationTerm="OData.LongDescription"String="The classes structure shall only contain a reference to a resource that complies to the SessionService schema." />
<AnnotationTerm="OData.AutoExpandReferences" />
</NavigationProperty>
<NavigationPropertyName="AccountService"Type="AccountService.AccountService"Nullable="false">
<AnnotationTerm="OData.Permissions"EnumMember="OData.Permission/Read" />
<AnnotationTerm="OData.Description"String="This is a link to the Account Service." />
<AnnotationTerm="OData.LongDescription"String="The classes structure shall only contain a reference to a resource that complies to the AccountService schema." />
<AnnotationTerm="OData.AutoExpandReferences" />
</NavigationProperty>
<NavigationPropertyName="EventService"Type="EventService.EventService"Nullable="false">
<AnnotationTerm="OData.Permissions"EnumMember="OData.Permission/Read" />
<AnnotationTerm="OData.Description"String="This is a link to the EventService." />
<AnnotationTerm="OData.LongDescription"String="The classes structure shall only contain a reference to a resource that complies to the EventService schema." />
<AnnotationTerm="OData.AutoExpandReferences" />
</NavigationProperty>
<NavigationPropertyName="Registries"Type="MessageRegistryFileCollection.MessageRegistryFileCollection"Nullable="false">
<AnnotationTerm="OData.Permissions"EnumMember="OData.Permission/Read" />
<AnnotationTerm="OData.Description"String="This is a link to a collection of Registries." />
<AnnotationTerm="OData.LongDescription"String="This object shall contain a reference to Message Registry." />
<AnnotationTerm="OData.AutoExpandReferences" />
</NavigationProperty>
<NavigationPropertyName="JsonSchemas"Type="JsonSchemaFileCollection.JsonSchemaFileCollection"Nullable="false">
<AnnotationTerm="OData.Permissions"EnumMember="OData.Permission/Read" />
<AnnotationTerm="OData.Description"String="This is a link to a collection of Json-Schema files." />
<AnnotationTerm="OData.LongDescription"String="This object shall only contain a reference to a collection of resources that comply to the SchemaFile schema where the files are Json-Schema files." />
<AnnotationTerm="OData.AutoExpandReferences" />
</NavigationProperty>
<PropertyName="Links"Type="ServiceRoot.v1_0_0.Links"Nullable="false">
<AnnotationTerm="OData.Permissions"EnumMember="OData.Permission/Read" />
<AnnotationTerm="OData.Description"String="Contains references to other resources that are related to this resource." />
<AnnotationTerm="OData.LongDescription"String="The Links property, as described by the Redfish Specification, shall contain references to resources that are related to, but not contained by (subordinate to), this resource." />
<AnnotationTerm="Redfish.Required" />
</Property>
</EntityType>
<ComplexTypeName="Links"BaseType="Resource.Links">
<NavigationPropertyName="Sessions"Type="SessionCollection.SessionCollection"Nullable="false">
<AnnotationTerm="OData.Permissions"EnumMember="OData.Permission/Read" />
<AnnotationTerm="OData.Description"String="Link to a collection of Sessions" />
<AnnotationTerm="OData.LongDescription"String="This property shall contain the link to a collection of Sessions." />
<AnnotationTerm="OData.AutoExpandReferences" />
</NavigationProperty>
</ComplexType>
</Schema>
<Schemaxmlns="http://docs.oasis-open.org/odata/ns/edm"Namespace="ServiceRoot.v1_0_2">
<EntityTypeName="ServiceRoot"BaseType="ServiceRoot.v1_0_0.ServiceRoot" />
</Schema>
</edmx:DataServices>
</edmx:Edmx>
The text was updated successfully, but these errors were encountered:
This may be out of scope, but I'm working with Redfish data from Dell, and
reflect_entities
is not correctly loading the entities available.From digging into this, it appears to be because DMTF/Redfish has broken their metadata up into many subfiles included by reference, and then entity containers just "extend" containers from these reference files.
Is it feasible to be able to load and cache these references when building the entities list? Or is something with a scope as large as this better off with an offline generation of service specific python classes?
Example data:
$metadata
ServiceRoot_v1.xml
The text was updated successfully, but these errors were encountered: