HewlettPackard / oneview-redfish-toolkit

HPE OneView Redfish Toolkit provides a REST service to answer DMTF's Redfish compliant requests by querying HPE OneView
Apache License 2.0
18 stars 21 forks source link

Wrong ID inside EthernetInterface object #504

Closed ricardogpsf closed 5 years ago

ricardogpsf commented 5 years ago

Requesting redfish/v1/CompositionService/ResourceBlocks/13d6739e-2856-4744-8a10-63ccbda0268e/EthernetInterfaces/2, we have as result:

{
        "@odata.type": "#EthernetInterface.v1_4_0.EthernetInterface",
        "@odata.id": "/redfish/v1/CompositionService/ResourceBlocks/13d6739e-2856-4744-8a10-63ccbda0268e/EthernetInterfaces/2",
        "Id": "13d6739e-2856-4744-8a10-63ccbda0268e",
        "SpeedMbps": 5000,
        "Name": "set_example",
        "VLANs": {
            "@odata.id": "/redfish/v1/CompositionService/ResourceBlocks/13d6739e-2856-4744-8a10-63ccbda0268e/EthernetInterfaces/2/VLANs"
        },
        "@odata.context": "/redfish/v1/$metadata#EthernetInterface.EthernetInterface"
    }

Note the EthernetInterface ID requested by the URI is "2" and the one returned inside the object is "13d6739e-2856-4744-8a10-63ccbda0268e".