summaryrefslogtreecommitdiffstats
path: root/settings.yaml
blob: 735321b20c6cea5a712b3024dfda9e058c49b3d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
---
# Settings Config File
org.openbmc.settings.Host:
    settings:
        powercap:
            name: power_cap
            type: i
            default: 0
            min: 0
            max: 1000
            unit: watts
            validation: range
        bootflags:
            name: boot_flags
            type: s
            default: "Default"
            validation: list
            allowed: ["Network", "Disk", "Safe", "CDROM", "Setup", "Default"]
        sysstate:
            name: system_state
            type: s
            default: ""
            validation: None
        powerpolicy:
            name: power_policy
            type: s
            default: "RESTORE_LAST_STATE"
            validation: list
            allowed: ["ALWAYS_POWER_ON", "RESTORE_LAST_STATE", "LEAVE_OFF"]
        restrictedmode:
            name: restricted_mode
            type: b
            default: false
            min: 0
            max: 1
            validation: range
        bootpolicy:
            name: boot_policy
            type: s
            default: "ONETIME"
            validation: list
            allowed: ["ONETIME", "PERMANENT"]
        networkconfig:
            name: network_config
            type: s
            default: "ipaddress=,prefix=,gateway=,mac=,addr_type="
            validation: custom
            method: validate_net_config
        TimeMode:
            name: time_mode
            type: s
            default: "NTP"
            validation: list
            allowed: ["NTP", "MANUAL"]
        TimeOwner:
            name: time_owner
            type: s
            default: "BMC"
            validation: list
            allowed: ["BMC", "HOST", "SPLIT", "BOTH"]
        UseDhcpNtp:
            name: use_dhcp_ntp
            type: s
            default: "yes"
            validation: list
            allowed: ["yes", "no"]
        AutoReboot:
            name: auto_reboot
            type: s
            default: "yes"
            validation: list
            allowed: ["yes", "no"]
    query:
        type: instance_query
        keyregex: "host"
        subtree: "/org/openbmc/control"
        matchregex: "control/(host\\d*)$"

# Example of using regex
#    macaddress:
#        name: mac_address
#        type: s
#        default: "aa:bb:cc:dd:ee:ff"
#        validation: regex
#        regex: '([a-fA-F0-9]{2}[:|\-]?){6}'
OpenPOWER on IntegriCloud