[PATCH phosphor-settingsd] Add Restricted mode as a host setting

Patrick Williams patrick at stwcx.xyz
Sat Apr 2 03:25:31 AEDT 2016


On Mon, Mar 28, 2016 at 03:01:14PM -0500, OpenBMC Patches wrote:
> From: tomjose <tomjoseph at in.ibm.com>
> 
> ---
> diff --git a/settings_file.py b/settings_file.py
> index 3efad0b..698d941 100644
> --- a/settings_file.py
> +++ b/settings_file.py
> @@ -1,2 +1,2 @@
>  #!/usr/bin/python -u
> -SETTINGS={'host': {'bootflags': {'default': 'default', 'type': 's', 'name': 'boot_flags'}, 'powerpolicy': {'default': 'RESTORE_LAST_STATE', 'type': 's', 'name': 'power_policy'}, 'powercap': {'name': 'power_cap', 'min': 0, 'default': 0, 'max': 1000, 'type': 'i', 'unit': 'watts'}, 'sysstate': {'default': '', 'type': 's', 'name': 'system_state'}}}
> \ No newline at end of file
> +SETTINGS={'host': {'bootflags': {'default': 'default', 'type': 's', 'name': 'boot_flags'}, 'powerpolicy': {'default': 'RESTORE_LAST_STATE', 'type': 's', 'name': 'power_policy'}, 'restrictedmode': {'default': False, 'type': 'b', 'name': 'restricted_mode'}, 'powercap': {'name': 'power_cap', 'min': 0, 'default': 0, 'max': 1000, 'type': 'i', 'unit': 'watts'}, 'sysstate': {'default': '', 'type': 's', 'name': 'system_state'}}}
> \ No newline at end of file

Would be nice for us to do a refactor of this to either:
    1) Generate from the YAML.
    2) Be defined on multiple lines so you can added a new entry without
       changing the whole variable.

Reviewed-by: Patrick Williams <patrick at stwcx.xyz>

> -- 
> 2.7.1
> 
> 
> _______________________________________________
> openbmc mailing list
> openbmc at lists.ozlabs.org
> https://lists.ozlabs.org/listinfo/openbmc

-- 
Patrick Williams
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.ozlabs.org/pipermail/openbmc/attachments/20160401/6ff563dc/attachment.sig>


More information about the openbmc mailing list