Add support for individual property update
SNMP Manager D-Bus object doesn't have support
for individual D-Bus property update.
This commit adds the support for the same.
Resolves openbmc/phosphor-snmp#2
Change-Id: Ic72366b6b18190e66e23d400a5f2c95037947809
Signed-off-by: Ratan Gupta <ratagupt@linux.vnet.ibm.com>
diff --git a/snmp_client.hpp b/snmp_client.hpp
index aab72cc..51ebabb 100644
--- a/snmp_client.hpp
+++ b/snmp_client.hpp
@@ -61,6 +61,26 @@
{
}
+ /** @brief Update the address of the object.
+ *
+ * @param[in] value - IP address
+ *
+ * @return On success the updated IP address
+ */
+ std::string address(std::string value) override;
+
+ /** @brief Update the port
+ *
+ * @param[in] value - port number
+ *
+ * @return On success the updated port number
+ */
+ uint16_t port(uint16_t value) override;
+
+ using sdbusplus::xyz::openbmc_project::Network::server::Client::address;
+
+ using sdbusplus::xyz::openbmc_project::Network::server::Client::port;
+
/** @brief Delete this d-bus object.
*/
void delete_() override;