One-way dbus properties
Deepak Kodihalli
dkodihal at linux.vnet.ibm.com
Thu Apr 25 13:05:03 AEST 2019
On 24/04/19 8:47 PM, Adriana Kobylak wrote:
> Wanted to get thoughts on how attempting to clear one-way dbus
> properties should be handled.
>
> There are some properties like Field Mode that are intended to be
> one-way, meaning that you can set them but not clear them:
>
> -
> https://github.com/openbmc/phosphor-dbus-interfaces/blob/master/xyz/openbmc_project/Control/FieldMode.interface.yaml
>
> description: >
> Keeps track of whether the BMC is in field mode. Enabling
> field mode
> is intended to be a one-way operation.
>
> If there's a call to clear the property value, currently this is a no-op
> and the REST call returns success but the value is not changed.
> Should an error be returned to the user?
I think an error (NotAllowed) should be thrown back.
Thanks,
Deepak
More information about the openbmc
mailing list