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>
diff --git a/settings.yaml b/settings.yaml
index 0fb61ba..9e08e29 100644
--- a/settings.yaml
+++ b/settings.yaml
@@ -32,3 +32,15 @@
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',