Regarding OpenBmc filtering option

Ed Tanous ed at tanous.net
Wed Aug 10 13:07:40 AEST 2022


On Tue, Aug 9, 2022 at 8:00 PM Havaligi, Mruthyunjaya Rao (Jay)
<mruthyunjaya.rao.havaligi at verizon.com> wrote:
>
> Hi,
>
> I am trying the filter option in openbmc (wht-0.91-0-gca8d06-ca8d06b) on Qemu. I am not able to filter based on the Id. I see where the filtering option was verified in this link -  https://gerrit.openbmc.org/c/openbmc/bmcweb/+/43505. Also, can I use ge, le and other options too?

Based on your version number, I'm assuming you're using the Intel-BMC
fork;  I can't speak to what they have implemented, but OpenBMC today
does not have an implementation of $filter.

https://gerrit.openbmc.org/c/openbmc/bmcweb/+/53013

Was me starting to work on it, and not getting very far.

https://gerrit.openbmc.org/c/openbmc/bmcweb/+/43505

Was another attempt that didn't go very far and was stacked behind a
large number of other patches.  If it's something you're interested
in, feel free to use either as a starting point.

>
>  curl -ku  x:x  'https:/x.x.x.x/redfish/v1/Managers/bmc/EthernetInterfaces?$expand=*'
> {
>   "@odata.id": "/redfish/v1/Managers/bmc/EthernetInterfaces",
>   "@odata.type": "#EthernetInterfaceCollection.EthernetInterfaceCollection",
>   "Description": "Collection of EthernetInterfaces for this Manager",
>   "Members": [
>     {
>       "@odata.id": "/redfish/v1/Managers/bmc/EthernetInterfaces/eth0"
>     },
>     {
>       "@odata.id": "/redfish/v1/Managers/bmc/EthernetInterfaces/eth1"
>     }
>   ],
>   "Members at odata.count": 2,
>   "Name": "Ethernet Network Interface Collection"
> }
> curl -ku xx:xx  https:/x.x.x.x/redfish/v1/Managers/bmc/EthernetInterfaces?$expand=*&$filter=Id eq 'eth1'
> curl: (52) Empty reply from server <<<
>
>
>
> Thanks,
> Jay
>


More information about the openbmc mailing list