blob: 0b44ee385598ec94d4aa157cc558dda36b50bdce [file] [log] [blame]
Vishwanatha Subbannaed490732016-12-20 15:59:29 +05301static const std::map<std::string,
2 std::set<phosphor::led::Layout::LedAction>> singleLedOn = {
3 { "/xyz/openbmc_project/ledmanager/groups/SingleLed",{
Vishwanatha Subbanna4b000d82017-05-03 18:44:16 +05304 {"One",phosphor::led::Layout::On, 0,
5 0, phosphor::led::Layout::Blink},
Vishwanatha Subbannaed490732016-12-20 15:59:29 +05306 }
7 },
8};
9
10static const std::map<std::string,
11 std::set<phosphor::led::Layout::LedAction>> singleLedBlink = {
12 { "/xyz/openbmc_project/ledmanager/groups/SingleLed",{
Vishwanatha Subbanna4b000d82017-05-03 18:44:16 +053013 {"One",phosphor::led::Layout::Blink, 0,
14 0, phosphor::led::Layout::Blink},
15 }
16 },
17};
18
19static const std::map<std::string,
20 std::set<phosphor::led::Layout::LedAction>> singleLedBlinkOverrideOn = {
21 { "/xyz/openbmc_project/ledmanager/groups/SingleLed",{
22 {"One",phosphor::led::Layout::Blink, 0,
23 0, phosphor::led::Layout::On},
Vishwanatha Subbannaed490732016-12-20 15:59:29 +053024 }
25 },
26};
27
28static const std::map<std::string,
29 std::set<phosphor::led::Layout::LedAction>> multipleLedsOn = {
30 { "/xyz/openbmc_project/ledmanager/groups/MultipleLeds",{
Vishwanatha Subbanna4b000d82017-05-03 18:44:16 +053031 {"One",phosphor::led::Layout::On, 0,
32 0, phosphor::led::Layout::On},
33 {"Two",phosphor::led::Layout::On, 0,
34 0, phosphor::led::Layout::On},
35 {"Three",phosphor::led::Layout::On, 0,
36 0, phosphor::led::Layout::On},
Vishwanatha Subbannaed490732016-12-20 15:59:29 +053037 }
38 },
39};
40
41static const std::map<std::string,
42 std::set<phosphor::led::Layout::LedAction>> multipleLedsBlink = {
43 { "/xyz/openbmc_project/ledmanager/groups/MultipleLeds",{
Vishwanatha Subbanna4b000d82017-05-03 18:44:16 +053044 {"One",phosphor::led::Layout::Blink, 0,
45 0, phosphor::led::Layout::Blink},
46 {"Two",phosphor::led::Layout::Blink, 0,
47 0, phosphor::led::Layout::Blink},
48 {"Three",phosphor::led::Layout::Blink,0,
49 0, phosphor::led::Layout::Blink},
Vishwanatha Subbannaed490732016-12-20 15:59:29 +053050 }
51 },
52};
53
54static const std::map<std::string,
55 std::set<phosphor::led::Layout::LedAction>> multipleLedsOnAndBlink = {
56 { "/xyz/openbmc_project/ledmanager/groups/MultipleLedsMix",{
Vishwanatha Subbanna4b000d82017-05-03 18:44:16 +053057 {"One",phosphor::led::Layout::Blink, 0,
58 0, phosphor::led::Layout::Blink},
59 {"Two",phosphor::led::Layout::On,
60 0, phosphor::led::Layout::Blink},
61 {"Three",phosphor::led::Layout::Blink,
62 0, phosphor::led::Layout::On},
63 {"Four",phosphor::led::Layout::On,
64 0, phosphor::led::Layout::Blink},
65 {"Five",phosphor::led::Layout::On,
66 0, phosphor::led::Layout::Blink},
Vishwanatha Subbannaed490732016-12-20 15:59:29 +053067 }
68 },
69};
70
71static const std::map<std::string,
72 std::set<phosphor::led::Layout::LedAction>> twoGroupsWithDistinctLEDsOn = {
73 { "/xyz/openbmc_project/ledmanager/groups/MultipleLedsASet",{
Vishwanatha Subbanna4b000d82017-05-03 18:44:16 +053074 {"One",phosphor::led::Layout::On, 0,
75 0, phosphor::led::Layout::Blink},
76 {"Two",phosphor::led::Layout::On, 0,
77 0, phosphor::led::Layout::On},
78 {"Three",phosphor::led::Layout::On, 0,
79 0, phosphor::led::Layout::Blink},
Vishwanatha Subbannaed490732016-12-20 15:59:29 +053080 }
81 },
82 { "/xyz/openbmc_project/ledmanager/groups/MultipleLedsBSet",{
Vishwanatha Subbanna4b000d82017-05-03 18:44:16 +053083 {"Four",phosphor::led::Layout::On, 0,
84 0, phosphor::led::Layout::Blink},
85 {"Five",phosphor::led::Layout::On, 0,
86 0, phosphor::led::Layout::Blink},
87 {"Six",phosphor::led::Layout::On, 0,
88 0, phosphor::led::Layout::On},
Vishwanatha Subbannaed490732016-12-20 15:59:29 +053089 }
90 },
91};
92
93static const std::map<std::string,
94 std::set<phosphor::led::Layout::LedAction>> twoGroupsWithOneComonLEDOn = {
95 { "/xyz/openbmc_project/ledmanager/groups/MultipleLedsASet",{
Vishwanatha Subbanna4b000d82017-05-03 18:44:16 +053096 {"One",phosphor::led::Layout::On, 0,
97 0, phosphor::led::Layout::On},
98 {"Two",phosphor::led::Layout::On, 0,
99 0, phosphor::led::Layout::On},
100 {"Three",phosphor::led::Layout::On, 0,
101 0, phosphor::led::Layout::On},
Vishwanatha Subbannaed490732016-12-20 15:59:29 +0530102 }
103 },
104 { "/xyz/openbmc_project/ledmanager/groups/MultipleLedsBSet",{
Vishwanatha Subbanna4b000d82017-05-03 18:44:16 +0530105 {"Four",phosphor::led::Layout::On, 0,
106 0, phosphor::led::Layout::On},
107 {"Three",phosphor::led::Layout::On, 0,
108 0, phosphor::led::Layout::On},
109 {"Six",phosphor::led::Layout::On, 0,
110 0, phosphor::led::Layout::On},
Vishwanatha Subbannaed490732016-12-20 15:59:29 +0530111 }
112 },
113};
114
115static const std::map<std::string,
Vishwanatha Subbanna4b000d82017-05-03 18:44:16 +0530116 std::set<phosphor::led::Layout::LedAction>> twoGroupsWithOneComonLEDOnOneLEDBlinkPriority = {
Vishwanatha Subbannaed490732016-12-20 15:59:29 +0530117 { "/xyz/openbmc_project/ledmanager/groups/MultipleLedsASet",{
Vishwanatha Subbanna4b000d82017-05-03 18:44:16 +0530118 {"One",phosphor::led::Layout::On, 0,
119 0, phosphor::led::Layout::On},
120 {"Two",phosphor::led::Layout::On, 0,
121 0, phosphor::led::Layout::On},
122 {"Three",phosphor::led::Layout::Blink, 0,
123 0, phosphor::led::Layout::Blink},
Vishwanatha Subbannaed490732016-12-20 15:59:29 +0530124 }
125 },
126 { "/xyz/openbmc_project/ledmanager/groups/MultipleLedsBSet",{
Vishwanatha Subbanna4b000d82017-05-03 18:44:16 +0530127 {"Four",phosphor::led::Layout::On, 0,
128 0, phosphor::led::Layout::On},
129 {"Three",phosphor::led::Layout::On, 0,
130 0, phosphor::led::Layout::Blink},
131 {"Six",phosphor::led::Layout::On, 0,
132 0, phosphor::led::Layout::On},
133 }
134 },
135};
136
137static const std::map<std::string,
138 std::set<phosphor::led::Layout::LedAction>> twoGroupsWithOneComonLEDOnPriority = {
139 { "/xyz/openbmc_project/ledmanager/groups/MultipleLedsASet",{
140 {"One",phosphor::led::Layout::On, 0,
141 0, phosphor::led::Layout::On},
142 {"Two",phosphor::led::Layout::On, 0,
143 0, phosphor::led::Layout::On},
144 {"Three",phosphor::led::Layout::Blink, 0,
145 0, phosphor::led::Layout::On},
146 }
147 },
148 { "/xyz/openbmc_project/ledmanager/groups/MultipleLedsBSet",{
149 {"Four",phosphor::led::Layout::On, 0,
150 0, phosphor::led::Layout::On},
151 {"Three",phosphor::led::Layout::On, 0,
152 0, phosphor::led::Layout::On},
153 {"Six",phosphor::led::Layout::On, 0,
154 0, phosphor::led::Layout::On},
Vishwanatha Subbannaed490732016-12-20 15:59:29 +0530155 }
156 },
157};
158
159static const std::map<std::string,
160 std::set<phosphor::led::Layout::LedAction>>
161 twoGroupsWithMultiplComonLEDOn = {
162 { "/xyz/openbmc_project/ledmanager/groups/MultipleLedsASet",{
Vishwanatha Subbanna4b000d82017-05-03 18:44:16 +0530163 {"One",phosphor::led::Layout::On, 0,
164 0, phosphor::led::Layout::On},
165 {"Two",phosphor::led::Layout::On, 0,
166 0, phosphor::led::Layout::On},
167 {"Three",phosphor::led::Layout::On, 0,
168 0, phosphor::led::Layout::On},
Vishwanatha Subbannaed490732016-12-20 15:59:29 +0530169 }
170 },
171 { "/xyz/openbmc_project/ledmanager/groups/MultipleLedsBSet",{
Vishwanatha Subbanna4b000d82017-05-03 18:44:16 +0530172 {"Two",phosphor::led::Layout::On, 0,
173 0, phosphor::led::Layout::On},
174 {"Six",phosphor::led::Layout::On, 0,
175 0, phosphor::led::Layout::On},
176 {"Three",phosphor::led::Layout::On, 0,
177 0, phosphor::led::Layout::On},
178 {"Seven",phosphor::led::Layout::On, 0,
179 0, phosphor::led::Layout::On},
Vishwanatha Subbannaed490732016-12-20 15:59:29 +0530180 }
181 },
182};
183
184static const std::map<std::string,
185 std::set<phosphor::led::Layout::LedAction>>
186 twoGroupsWithMultipleComonLEDInDifferentState = {
187 { "/xyz/openbmc_project/ledmanager/groups/MultipleLedsASet",{
Vishwanatha Subbanna4b000d82017-05-03 18:44:16 +0530188 {"One",phosphor::led::Layout::On, 0,
189 0, phosphor::led::Layout::On},
190 {"Two",phosphor::led::Layout::Blink, 0,
191 0, phosphor::led::Layout::On},
192 {"Three",phosphor::led::Layout::Blink, 0,
193 0, phosphor::led::Layout::On},
194 {"Four",phosphor::led::Layout::On, 0,
195 0, phosphor::led::Layout::On},
Vishwanatha Subbannaed490732016-12-20 15:59:29 +0530196 }
197 },
198 { "/xyz/openbmc_project/ledmanager/groups/MultipleLedsBSet",{
Vishwanatha Subbanna4b000d82017-05-03 18:44:16 +0530199 {"Two",phosphor::led::Layout::On, 0,
200 0, phosphor::led::Layout::On},
201 {"Three",phosphor::led::Layout::Blink, 0,
202 0, phosphor::led::Layout::On},
203 {"Five",phosphor::led::Layout::On, 0,
204 0, phosphor::led::Layout::On},
205 {"Six",phosphor::led::Layout::On, 0,
206 0, phosphor::led::Layout::On},
Vishwanatha Subbannaed490732016-12-20 15:59:29 +0530207 }
208 },
209};
Vishwanatha Subbannacd569d22017-05-03 12:46:14 +0530210
211static const std::map<std::string,
212 std::set<phosphor::led::Layout::LedAction>>
Vishwanatha Subbanna4b000d82017-05-03 18:44:16 +0530213 twoGroupsWithMultipleComonLEDInDifferentStateDiffPriority = {
Vishwanatha Subbannacd569d22017-05-03 12:46:14 +0530214 { "/xyz/openbmc_project/ledmanager/groups/MultipleLedsASet",{
Vishwanatha Subbanna4b000d82017-05-03 18:44:16 +0530215 {"One",phosphor::led::Layout::On, 0,
216 0, phosphor::led::Layout::On},
217 {"Two",phosphor::led::Layout::Blink, 0,
218 0, phosphor::led::Layout::On},
219 {"Three",phosphor::led::Layout::On, 0,
220 0, phosphor::led::Layout::Blink},
221 {"Four",phosphor::led::Layout::On, 0,
222 0, phosphor::led::Layout::On},
223 {"Ten",phosphor::led::Layout::Blink, 0,
224 0, phosphor::led::Layout::Blink},
Vishwanatha Subbannacd569d22017-05-03 12:46:14 +0530225 }
226 },
227 { "/xyz/openbmc_project/ledmanager/groups/MultipleLedsBSet",{
Vishwanatha Subbanna4b000d82017-05-03 18:44:16 +0530228 {"Two",phosphor::led::Layout::On, 0,
229 0, phosphor::led::Layout::On},
230 {"Three",phosphor::led::Layout::On, 0,
231 0, phosphor::led::Layout::Blink},
232 {"Five",phosphor::led::Layout::On, 0,
233 0, phosphor::led::Layout::On},
234 {"Six",phosphor::led::Layout::On, 0,
235 0, phosphor::led::Layout::On},
236 {"Ten",phosphor::led::Layout::On, 0,
237 0, phosphor::led::Layout::Blink},
Vishwanatha Subbannacd569d22017-05-03 12:46:14 +0530238 }
239 },
240};