1--- 2# Settings Config File 3org.openbmc.settings.Host: 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 UseDhcpNtp: 56 name: use_dhcp_ntp 57 type: s 58 default: "yes" 59 validation: list 60 allowed: ["yes", "no"] 61 AutoReboot: 62 name: auto_reboot 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" 71 matchregex: "control/(host\\d*)$" 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}' 79