Add D-bus monitor snmp policy for ibm systems
This commit is add D-bus monitor config.yaml
for errorlog entries for snmp eventing.
Tested by:
Configured SNMP and created errorlog
observed snmp traps recieved on SNMP server
Signed-off-by: Ravi Teja <raviteja28031990@gmail.com>
Change-Id: I59c1f8a3b03eb3aab4a55c3cfb0bfb3e9e600a4d
diff --git a/meta-ibm/recipes-phosphor/dbus/snmp-policy/snmp-config.yaml b/meta-ibm/recipes-phosphor/dbus/snmp-policy/snmp-config.yaml
new file mode 100644
index 0000000..a168bde
--- /dev/null
+++ b/meta-ibm/recipes-phosphor/dbus/snmp-policy/snmp-config.yaml
@@ -0,0 +1,18 @@
+- name: errorlog path group
+ class: group
+ group: path
+ members:
+ - meta: PATH
+ path: /xyz/openbmc_project/logging
+
+- name: pathwatch errorlog
+ class: pathwatch
+ pathwatch: path
+ paths: errorlog path group
+ pathcallback: create errorlog trap
+
+- name: create errorlog trap
+ class: pathcallback
+ pathcallback: eventpath
+ paths: errorlog path group
+ eventType: ErrorTrap