blob: 2479c2400cd077a5ecc546f0f59e754b14ebd5c5 [file] [log] [blame]
#pragma once
#include "snmp_notification.hpp"
namespace phosphor
{
namespace network
{
namespace snmp
{
/* @brief sends the trap to the snmp manager
* T - Notification type
* @param[in] tArgs - arguments for the trap.
*/
template <typename T, typename... ArgTypes>
void sendTrap(ArgTypes&&... tArgs)
{
T obj(std::forward<ArgTypes>(tArgs)...);
obj.sendTrap();
}
} // namespace snmp
} // namespace network
} // namespace phosphor