blob: 262486cb6257cc65e221f817f76adeed51325b5c [file] [log] [blame]
George Keishingcae6e902017-09-07 13:35:59 -05001*** Settings ***
2Documentation Open power domain keywords.
3
4Library ../data/variables.py
5Resource ../lib/utils.robot
6
7*** Keywords ***
8
9Get OCC Objects
10 [Documentation] Get the OCC objects and return as a list.
11
12 # Example:
13 # {
14 # "/org/open_power/control/occ0": {
15 # "OccActive": 0
16 # },
17 # "/org/open_power/control/occ1": {
18 # "OccActive": 1
19 # }
20
21 ${occ_list}= Get Endpoint Paths ${OPENBMC_POWER} occ*
22
23 [Return] ${occ_list}
24
25
26Get OCC Active State
27 [Documentation] Get the OCC "OccActive" and return the attribute value.
28 [Arguments] ${occ_object}
29
30 # Description of argument(s):
31 # occ_object OCC object path.
32 # (e.g. "/org/open_power/control/occ0").
33
34 ${occ_attribute}= Read Attribute ${occ_object} OccActive
35 [Return] ${occ_attribute}