Create Interface returns the D-Bus object path
In current code when the client creates the SNNP manager D-Bus object,
snmp-conf-manager(D-Bus service) implementing the create interface
was not returning the newly created D-Bus object path, hence
client needs to make the enumerate call on the
network namespace to find the newly create D-Bus object path.
This commit fixes this problem where Create interface starts
returning the newly created D-Bus object path.
Resolves openbmc/phosphor-snmp#1
Change-Id: I26e1ee4a2b869553e511576457148bd1dd9dc224
Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>
diff --git a/snmp_conf_manager.hpp b/snmp_conf_manager.hpp
index d9164ae..7381314 100644
--- a/snmp_conf_manager.hpp
+++ b/snmp_conf_manager.hpp
@@ -50,8 +50,9 @@
/** @brief Function to create snmp manager details D-Bus object.
* @param[in] address- IP address/Hostname.
* @param[in] port - network port.
+ * @returns D-Bus object path
*/
- void client(std::string address, uint16_t port) override;
+ std::string client(std::string address, uint16_t port) override;
/* @brief delete the D-Bus object of the given ipaddress.
* @param[in] address - IP address/Hostname.