File 0830-snmp-agent-doc-Added-a-note-for-send_notification2.patch of Package erlang
From 342b4662264a8c99e88cd05bfffd5865225421f5 Mon Sep 17 00:00:00 2001
From: Micael Karlberg <bmk@erlang.org>
Date: Thu, 12 Dec 2019 13:01:05 +0100
Subject: [PATCH 3/3] [snmp|agent|doc] Added a note for send_notification2
Add a note about the special value for the varbind list
in the send_notification2 function.
OTP-16349
---
lib/snmp/doc/src/snmpa.xml | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/lib/snmp/doc/src/snmpa.xml b/lib/snmp/doc/src/snmpa.xml
index 5b662620a9..e5ed9d7a2b 100644
--- a/lib/snmp/doc/src/snmpa.xml
+++ b/lib/snmp/doc/src/snmpa.xml
@@ -1096,6 +1096,14 @@ snmp_agent:register_subagent(SA1,[1,2,3], SA2).
</item>
</list>
+ <note>
+ <p>There is a way to exclude a varbind from the notification.
+ In the normal <c>varbinds</c> list, providing the special
+ value <c>'$ignore-oid'</c> (instead of a normal value) will
+ exclude this varbind from the notification. </p>
+ <p>A define for this has been added to the <c>snmp_types.hrl</c>
+ include file, <c>NOTIFICATION_IGNORE_VB_VALUE</c>. </p>
+ </note>
<note>
<p>The <c>extra</c> info is not normally interpreted by the agent,
instead it is passed through to the
--
2.16.4