-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathsettings_example.yaml
50 lines (46 loc) · 1.7 KB
/
settings_example.yaml
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
# This settings object implements multiple interfaces
/xyz/openbmc_project/control/host0/boot:
- Interface: xyz.openbmc_project.Control.Boot.Mode
Properties:
BootMode:
Default: Mode::Modes::Safe
- Interface: xyz.openbmc_project.Control.Boot.Source
Properties:
BootSource:
Default: Source::Sources::Default
# Same as the previous settings object, but for a different host
/xyz/openbmc_project/control/host1/boot:
- Interface: xyz.openbmc_project.Control.Boot.Mode
Properties:
BootMode:
Default: Mode::Modes::Safe
- Interface: xyz.openbmc_project.Control.Boot.Source
Properties:
BootSource:
Default: Source::Sources::Default
# This settings object has a property that needs to be validated, when changed.
/xyz/openbmc_project/network/host0/intf:
- Interface: xyz.openbmc_project.Network.MACAddress
Properties:
MACAddress:
Default: '"00:00:00:00:00:00"'
Validation:
Type: "regex"
Validator: "^([0-9A-F]{2}[:-]){5}([0-9A-F]{2})$"
/xyz/openbmc_project/control/host0/power_cap:
- Interface: xyz.openbmc_project.Control.Power.Cap
Properties:
PowerCap:
Default: 0
Validation:
Type: "range"
Validator: "0..1000"
Unit: "Watts"
PowerCapEnable:
Default: "false"
# This interface also ends in Mode and sets an enum.
/xyz/openbmc_project/control/power_mode:
- Interface: xyz.openbmc_project.Control.Power.Mode
Properties:
PowerMode:
Default: Mode::PowerMode::Static