Add recipe for phosphor-snmp
Phosphor-snmp provides the D-Bus service named network-snmp-conf
which is used to configure the snmp manager details.
Phosphor-snmp also provides the lib which is used by the client
to send the snmp trap.
Phosphor-snmp uses the net-snmp libs to send the trap.
net-snmp provides the following packages
net-snmp-libs,net-snmp-server, net-snmp-client,
net-snmp-server-snmpd-netsnmp-server-snmptrapd.
To send a trap we are interested only in the net-snmp-libs.
By default the net-snmp-libs is having the code enabled for server
sepcific functions which makes the libs heavy.
This commit adds the recipe for phosphor-snmp and the service file
for D-Bus service(network-snmp-conf) and disables those features
from net-snmp which are specfic for MIB parsing,snmpd and snmptrapd.
However this features may be required if we start using
the snmp agent functionality.
Change-Id: I6ff36fcd378db2f506b0621569693d66d7de79e9
Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>
diff --git a/common/recipes-phosphor/network/phosphor-snmp/xyz.openbmc_project.Network.SNMP.service b/common/recipes-phosphor/network/phosphor-snmp/xyz.openbmc_project.Network.SNMP.service
new file mode 100644
index 0000000..f5a1d72
--- /dev/null
+++ b/common/recipes-phosphor/network/phosphor-snmp/xyz.openbmc_project.Network.SNMP.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=Phosphor SNMP conf Manager
+After=obmc-mapper.target
+
+[Service]
+ExecStart=/usr/bin/env phosphor-network-snmpconf
+SyslogIdentifier=phosphor-network-snmpconf
+Restart=always
+Type=dbus
+BusName=xyz.openbmc_project.Network.SNMP
+
+[Install]
+WantedBy={SYSTEMD_DEFAULT_TARGET}