lamptest: Add virtual LEDs to group definition
- During LampTest, if a physical LED state has to be changed, the
requirement is that we apply the states after the lamp test is
done. However, there is another requirement that expects the
accurate state of LEDs to be reported. virtual physical LEDs
solves this problem.
- If the lamp test is not running, state of virtual_led will be equal
to real physical LED. However, during LampTest, virtual LED would
indicate the effective state of the LED as if there was no lamp
test. Once the lamp test finishes, state of virtual and physical
would be same.
Signed-off-by: George Liu <liuxiwei@inspur.com>
Change-Id: I9489228725577d942dd469312e871c2ee712cd33
diff --git a/example/led-group-config.json b/example/led-group-config.json
index 7b93f45..5a6f812 100644
--- a/example/led-group-config.json
+++ b/example/led-group-config.json
@@ -25,7 +25,14 @@
{
"name": "front_fault",
"Action": "On"
- }
+ },
+ {
+ "Name" : "virtual_enclosure_fault",
+ "Action" : "On",
+ "DutyOn" : 50,
+ "Period" : 0,
+ "Priority" : "Blink"
+ }
]
},
{
@@ -42,7 +49,14 @@
"Action": "Blink",
"DutyOn": 50,
"Period": 1000
- }
+ },
+ {
+ "Name" : "virtual_enclosure_identify",
+ "Action" : "On",
+ "DutyOn" : 50,
+ "Period" : 0,
+ "Priority" : "Blink"
+ }
]
},
{
@@ -59,7 +73,14 @@
{
"name": "rear_fault",
"Action": "On"
- }
+ },
+ {
+ "Name" : "virtual_enclosure_fault",
+ "Action" : "On",
+ "DutyOn" : 50,
+ "Period" : 0,
+ "Priority" : "Blink"
+ }
]
},
{
@@ -82,7 +103,14 @@
"Action": "Blink",
"DutyOn": 50,
"Period": 1000
- }
+ },
+ {
+ "Name" : "virtual_enclosure_identify",
+ "Action" : "On",
+ "DutyOn" : 50,
+ "Period" : 0,
+ "Priority" : "Blink"
+ }
]
}
]