Adriana Kobylak | 4c60e5e | 2016-01-10 15:22:45 -0600 | [diff] [blame] | 1 | #!/usr/bin/python -u |
Patrick Williams | cd74b12 | 2016-04-01 16:49:05 -0500 | [diff] [blame] | 2 | SETTINGS=\ |
Vishwanatha Subbanna | 5b090c6 | 2016-09-21 15:49:26 +0530 | [diff] [blame] | 3 | {'org.openbmc.settings.Host': {'TimeMode': {'allowed': ['NTP', 'MANUAL'], |
| 4 | 'default': 'NTP', |
| 5 | 'name': 'time_mode', |
| 6 | 'type': 's', |
| 7 | 'validation': 'list'}, |
| 8 | 'TimeOwner': {'allowed': ['BMC', |
| 9 | 'HOST', |
| 10 | 'SPLIT', |
| 11 | 'BOTH'], |
| 12 | 'default': 'BMC', |
| 13 | 'name': 'time_owner', |
| 14 | 'type': 's', |
| 15 | 'validation': 'list'}, |
| 16 | 'UseDhcpNtp': {'allowed': ['yes', 'no'], |
| 17 | 'default': 'yes', |
| 18 | 'name': 'use_dhcp_ntp', |
| 19 | 'type': 's', |
| 20 | 'validation': 'list'}, |
| 21 | 'bootflags': {'allowed': ['Network', |
| 22 | 'Disk', |
| 23 | 'Safe', |
| 24 | 'CDROM', |
| 25 | 'Setup', |
| 26 | 'default'], |
| 27 | 'default': 'default', |
| 28 | 'name': 'boot_flags', |
| 29 | 'type': 's', |
| 30 | 'validation': 'list'}, |
| 31 | 'bootpolicy': {'allowed': ['ONETIME', |
| 32 | 'PERMANENT'], |
| 33 | 'default': 'ONETIME', |
| 34 | 'name': 'boot_policy', |
| 35 | 'type': 's', |
| 36 | 'validation': 'list'}, |
| 37 | 'networkconfig': {'default': 'ipaddress=,prefix=,gateway=,mac=,addr_type=', |
| 38 | 'method': 'validate_net_config', |
| 39 | 'name': 'network_config', |
| 40 | 'type': 's', |
| 41 | 'validation': 'custom'}, |
| 42 | 'powercap': {'default': 0, |
| 43 | 'max': 1000, |
| 44 | 'min': 0, |
| 45 | 'name': 'power_cap', |
| 46 | 'type': 'i', |
| 47 | 'unit': 'watts', |
| 48 | 'validation': 'range'}, |
| 49 | 'powerpolicy': {'allowed': ['ALWAYS_POWER_ON', |
| 50 | 'RESTORE_LAST_STATE', |
| 51 | 'LEAVE_OFF'], |
| 52 | 'default': 'RESTORE_LAST_STATE', |
| 53 | 'name': 'power_policy', |
| 54 | 'type': 's', |
| 55 | 'validation': 'list'}, |
| 56 | 'restrictedmode': {'default': False, |
| 57 | 'max': 1, |
| 58 | 'min': 0, |
| 59 | 'name': 'restricted_mode', |
| 60 | 'type': 'b', |
| 61 | 'validation': 'range'}, |
| 62 | 'sysstate': {'default': '', |
| 63 | 'name': 'system_state', |
| 64 | 'type': 's', |
| 65 | 'validation': 'None'}}} |