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 |
| 16 | default: "default" |
| 17 | validation: list |
| 18 | allowed: ["Network", "Disk", "Safe", "CDROM", "Setup", "default"] |
| 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"] |
| 55 | TimeOwner: |
| 56 | name: time_owner |
| 57 | type: s |
| 58 | default: "BMC" |
| 59 | validation: list |
| 60 | allowed: ["BMC", "HOST", "SPLIT", "BOTH"] |
| 61 | UseDhcpNtp: |
| 62 | name: use_dhcp_ntp |
| 63 | type: s |
| 64 | default: "yes" |
| 65 | validation: list |
| 66 | allowed: ["yes", "no"] |
| 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 | |
| 73 | # Example of using regex |
| 74 | # macaddress: |
| 75 | # name: mac_address |
| 76 | # type: s |
| 77 | # default: "aa:bb:cc:dd:ee:ff" |
| 78 | # validation: regex |
| 79 | # regex: '([a-fA-F0-9]{2}[:|\-]?){6}' |