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/lamp-test/lamp-test-led-overrides.json b/example/lamp-test/lamp-test-led-overrides.json
new file mode 100644
index 0000000..f71c324
--- /dev/null
+++ b/example/lamp-test/lamp-test-led-overrides.json
@@ -0,0 +1,17 @@
+{
+ # This section of this json contains name of physical leds that
+ # will get triggered during lamp test overriding lamp-test
+ # requirements these will be hosted as
+ # /xyz/openbmc_project/led/physical/<$name_in_this_file>
+ "forceLEDs":[
+ "virtual_enclosure_fault",
+ "virtual_enclosure_identify"
+ ],
+
+ # This section of this json contains name of physical leds that
+ # will not get triggered during lamp test
+ # these will be hosted as
+ # /xyz/openbmc_project/led/physical/<$name_in_this_file>
+ "skipLEDs":[
+ ]
+}
\ No newline at end of file