diff options
author | Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com> | 2016-08-31 15:56:20 +0530 |
---|---|---|
committer | Patrick Williams <patrick@stwcx.xyz> | 2016-09-12 19:27:45 +0000 |
commit | 5a1fc9aa4e1e6d6709fac3c335fd3de9ccbcbee4 (patch) | |
tree | a3c83a60e2f9d57b25936b801be883265529c33e | |
parent | 256be7873400074fb35701684f773c07ef78b525 (diff) | |
download | phosphor-settingsd-5a1fc9aa4e1e6d6709fac3c335fd3de9ccbcbee4.tar.gz phosphor-settingsd-5a1fc9aa4e1e6d6709fac3c335fd3de9ccbcbee4.zip |
Add properties needed by Time Manager daemon
time manager daemon needs 3 new properties namely:
- time_mode : For setting the mode to NTP or MANUAL
- time_owner : For setting the owner to BMC/HOST/SPLIT/BOTH
- use_dhcp_ntp : Updating UseNtp= field in network files
Change-Id: I50ef4ef32f5555044c7722519f6c0dd26bd3c83a
Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
-rw-r--r-- | settings.yaml | 12 | ||||
-rw-r--r-- | settings_file.py | 7 |
2 files changed, 18 insertions, 1 deletions
diff --git a/settings.yaml b/settings.yaml index 0fb61ba..9e08e29 100644 --- a/settings.yaml +++ b/settings.yaml @@ -32,3 +32,15 @@ host: name: network_config type: s default: "ipaddress=,prefix=,gateway=,mac=,addr_type=" + TimeMode: + name: time_mode + type: s + default: "NTP" + TimeOwner: + name: time_owner + type: s + default: "BMC" + UseDhcpNtp: + name: use_dhcp_ntp + type: s + default: "yes" diff --git a/settings_file.py b/settings_file.py index f36be98..ced0d5e 100644 --- a/settings_file.py +++ b/settings_file.py @@ -1,6 +1,11 @@ #!/usr/bin/python -u SETTINGS=\ -{'host': {'bootflags': {'default': 'default', +{'host': {'TimeMode': {'default': 'NTP', 'name': 'time_mode', 'type': 's'}, + 'TimeOwner': {'default': 'BMC', 'name': 'time_owner', 'type': 's'}, + 'UseDhcpNtp': {'default': 'yes', + 'name': 'use_dhcp_ntp', + 'type': 's'}, + 'bootflags': {'default': 'default', 'name': 'boot_flags', 'type': 's'}, 'bootpolicy': {'default': 'ONETIME', |