blob: 4049e2d877b4fd48687aa38f6e7e81a21c582186 [file] [log] [blame]
#include "snmp_client.hpp"
#include "snmp_conf_manager.hpp"
namespace phosphor
{
namespace network
{
namespace snmp
{
Client::Client(sdbusplus::bus::bus& bus, const char* objPath,
ConfManager& parent, const std::string& address, uint16_t port) :
Ifaces(bus, objPath, true),
parent(parent)
{
this->address(address);
this->port(port);
// Emit deferred signal.
emit_object_added();
}
void Client::delete_()
{
parent.deleteSNMPClient(this->address());
}
} // namespace snmp
} // namespace network
} // namespace phosphor