Add the method to set Functional property based on Group state

When a particular LED Group asserted property is set to true, then the
functional state of that FRU is false and vice-versa. This commit adds
that behavior. Functional status is defined in
xyz.openbmc_project.State.Decorator.OperationalStatus interface.

Tested: When manually set the Asserted property to true by the D-Bus,
we can see that the Functional is updated to false.

Signed-off-by: George Liu <liuxiwei@inspur.com>
Change-Id: I6fa7a4c41363263d345b6b5335056fad15efb78c
diff --git a/group.cpp b/group.cpp
index 9292770..a6656d3 100644
--- a/group.cpp
+++ b/group.cpp
@@ -30,6 +30,11 @@
     // Store asserted state
     serialize.storeGroups(path, result);
 
+    // Set OperationalStatus according to the status of asserted property.
+    // If the group is asserted, then the functional status is false and
+    // vice-versa.
+    manager.setOperationalStatus(path, !value);
+
     // If something does not go right here, then there should be an sdbusplus
     // exception thrown.
     manager.driveLEDs(ledsAssert, ledsDeAssert);