Adriana Kobylak | 4c60e5e | 2016-01-10 15:22:45 -0600 | [diff] [blame] | 1 | --- |
| 2 | # Settings Config File |
Vishwanatha Subbanna | 5b090c6 | 2016-09-21 15:49:26 +0530 | [diff] [blame] | 3 | org.openbmc.settings.Host: |
Sergey Solomin | 62b55f3 | 2016-10-13 10:40:27 -0500 | [diff] [blame] | 4 | settings: |
| 5 | powercap: |
| 6 | name: power_cap |
| 7 | type: i |
| 8 | default: 0 |
| 9 | min: 0 |
| 10 | max: 1000 |
| 11 | unit: watts |
| 12 | validation: range |
| 13 | bootflags: |
| 14 | name: boot_flags |
| 15 | type: s |
Ratan Gupta | 0e72d93 | 2017-04-03 17:12:35 +0530 | [diff] [blame] | 16 | default: "Default" |
Sergey Solomin | 62b55f3 | 2016-10-13 10:40:27 -0500 | [diff] [blame] | 17 | validation: list |
Ratan Gupta | 0e72d93 | 2017-04-03 17:12:35 +0530 | [diff] [blame] | 18 | allowed: ["Network", "Disk", "Safe", "CDROM", "Setup", "Default"] |
Sergey Solomin | 62b55f3 | 2016-10-13 10:40:27 -0500 | [diff] [blame] | 19 | sysstate: |
| 20 | name: system_state |
| 21 | type: s |
| 22 | default: "" |
| 23 | validation: None |
| 24 | powerpolicy: |
| 25 | name: power_policy |
| 26 | type: s |
| 27 | default: "RESTORE_LAST_STATE" |
| 28 | validation: list |
| 29 | allowed: ["ALWAYS_POWER_ON", "RESTORE_LAST_STATE", "LEAVE_OFF"] |
| 30 | restrictedmode: |
| 31 | name: restricted_mode |
| 32 | type: b |
| 33 | default: false |
| 34 | min: 0 |
| 35 | max: 1 |
| 36 | validation: range |
| 37 | bootpolicy: |
| 38 | name: boot_policy |
| 39 | type: s |
| 40 | default: "ONETIME" |
| 41 | validation: list |
| 42 | allowed: ["ONETIME", "PERMANENT"] |
| 43 | networkconfig: |
| 44 | name: network_config |
| 45 | type: s |
| 46 | default: "ipaddress=,prefix=,gateway=,mac=,addr_type=" |
| 47 | validation: custom |
| 48 | method: validate_net_config |
| 49 | TimeMode: |
| 50 | name: time_mode |
| 51 | type: s |
| 52 | default: "NTP" |
| 53 | validation: list |
| 54 | allowed: ["NTP", "MANUAL"] |
Sergey Solomin | 62b55f3 | 2016-10-13 10:40:27 -0500 | [diff] [blame] | 55 | UseDhcpNtp: |
| 56 | name: use_dhcp_ntp |
| 57 | type: s |
| 58 | default: "yes" |
| 59 | validation: list |
| 60 | allowed: ["yes", "no"] |
Michael Tritz | aaa74c1 | 2017-01-30 15:58:41 -0600 | [diff] [blame] | 61 | AutoReboot: |
| 62 | name: auto_reboot |
| 63 | type: s |
| 64 | default: "yes" |
| 65 | validation: list |
| 66 | allowed: ["yes", "no"] |
Sergey Solomin | 62b55f3 | 2016-10-13 10:40:27 -0500 | [diff] [blame] | 67 | query: |
| 68 | type: instance_query |
| 69 | keyregex: "host" |
| 70 | subtree: "/org/openbmc/control" |
Sergey Solomin | 0fdfa72 | 2016-11-09 14:45:53 -0600 | [diff] [blame] | 71 | matchregex: "control/(host\\d*)$" |
Vishwanatha Subbanna | 5b090c6 | 2016-09-21 15:49:26 +0530 | [diff] [blame] | 72 | # Example of using regex |
| 73 | # macaddress: |
| 74 | # name: mac_address |
| 75 | # type: s |
| 76 | # default: "aa:bb:cc:dd:ee:ff" |
| 77 | # validation: regex |
| 78 | # regex: '([a-fA-F0-9]{2}[:|\-]?){6}' |