RedundancyPriority: Override set property function
Create override function so that actions can be taken
based on value that the property is being set to.
Change-Id: I875fe8238718efb6b4d6dcd9f9bf26a8bc4998f1
Signed-off-by: Saqib Khan <khansa@us.ibm.com>
diff --git a/activation.cpp b/activation.cpp
index 58819c0..98df52b 100755
--- a/activation.cpp
+++ b/activation.cpp
@@ -128,6 +128,11 @@
return softwareServer::Activation::requestedActivation(value);
}
+uint8_t RedundancyPriority::priority(uint8_t value)
+{
+ return softwareServer::RedundancyPriority::priority(value);
+}
+
} // namespace updater
} // namespace software
} // namespace openpower
diff --git a/activation.hpp b/activation.hpp
index 8835ca6..0e80260 100755
--- a/activation.hpp
+++ b/activation.hpp
@@ -44,6 +44,14 @@
// Emit deferred signal.
emit_object_added();
}
+
+ /** @brief Overloaded Priority property set function
+ *
+ * @param[in] value - uint8_t
+ *
+ * @return Success or exception thrown
+ */
+ uint8_t priority(uint8_t value) override;
};
/** @class ActivationBlocksTransition