blob: 4049e2d877b4fd48687aa38f6e7e81a21c582186 [file] [log] [blame]
Ratan Gupta1dc91782018-04-19 16:47:12 +05301#include "snmp_client.hpp"
2#include "snmp_conf_manager.hpp"
3
4namespace phosphor
5{
6namespace network
7{
8namespace snmp
9{
10
11Client::Client(sdbusplus::bus::bus& bus, const char* objPath,
12 ConfManager& parent, const std::string& address, uint16_t port) :
13 Ifaces(bus, objPath, true),
14 parent(parent)
15{
16 this->address(address);
17 this->port(port);
18
19 // Emit deferred signal.
20 emit_object_added();
21}
22
23void Client::delete_()
24{
25 parent.deleteSNMPClient(this->address());
26}
27
28} // namespace snmp
29} // namespace network
30} // namespace phosphor