summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdriana Kobylak <anoo@us.ibm.com>2018-08-17 13:04:41 -0500
committerBrad Bishop <bradleyb@fuzziesquirrel.com>2018-08-31 00:49:54 +0000
commit5af83f1528f106c8f58966aee0a0a7b8eacd5dd7 (patch)
treeb4c47abc2b3a3150c415e28e6cc305b990fcfb26
parentcbe88430ccdcf9f22c2b8dc24fad3df40ce389c4 (diff)
downloadphosphor-dbus-interfaces-5af83f1528f106c8f58966aee0a0a7b8eacd5dd7.tar.gz
phosphor-dbus-interfaces-5af83f1528f106c8f58966aee0a0a7b8eacd5dd7.zip
Control: Make PowerSupplyRedundancy const (read-only)
This property is a policy that dictates how the system would behave if a power supply goes missing, and it's not intended to be modified by the user. Set it to read-only. Tested: Attempting to change the value via REST fails with "org.freedesktop.DBus.Error.PropertyReadOnly". Change-Id: I423a49bbf30eb150e38c8da52b913c3097384897 Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
-rw-r--r--xyz/openbmc_project/Control/PowerSupplyRedundancy.interface.yaml2
1 files changed, 2 insertions, 0 deletions
diff --git a/xyz/openbmc_project/Control/PowerSupplyRedundancy.interface.yaml b/xyz/openbmc_project/Control/PowerSupplyRedundancy.interface.yaml
index b99d51b..bf36a77 100644
--- a/xyz/openbmc_project/Control/PowerSupplyRedundancy.interface.yaml
+++ b/xyz/openbmc_project/Control/PowerSupplyRedundancy.interface.yaml
@@ -3,5 +3,7 @@ description: >
properties:
- name: PowerSupplyRedundancyEnabled
type: boolean
+ flags:
+ - const
description: >
When true, the power supplies are redundant.
OpenPOWER on IntegriCloud