summaryrefslogtreecommitdiff
path: root/pysnmp/hlapi/asyncio/ntforg.py
diff options
context:
space:
mode:
Diffstat (limited to 'pysnmp/hlapi/asyncio/ntforg.py')
-rw-r--r--pysnmp/hlapi/asyncio/ntforg.py17
1 files changed, 16 insertions, 1 deletions
diff --git a/pysnmp/hlapi/asyncio/ntforg.py b/pysnmp/hlapi/asyncio/ntforg.py
index 13ec63bd..0541684e 100644
--- a/pysnmp/hlapi/asyncio/ntforg.py
+++ b/pysnmp/hlapi/asyncio/ntforg.py
@@ -21,13 +21,28 @@ try:
except ImportError:
import trollius as asyncio
-__all__ = ['sendNotification']
+__all__ = ['sendNotification', 'unconfigureNtfOrg']
vbProcessor = NotificationOriginatorVarBinds()
lcd = NotificationOriginatorLcdConfigurator()
@asyncio.coroutine
+def unconfigureNtfOrg(snmpEngine, authData=None):
+ """Remove LCD configuration entry.
+
+ If `authData` is not given, all currently configured LCD entries will be
+ removed.
+
+ Note
+ ----
+ Configuration entry removal may have a side effect of removing unused transport
+ and shutting down unused transport dispatcher.
+ """
+ lcd.unconfigure(snmpEngine, authData)
+
+
+@asyncio.coroutine
def sendNotification(snmpEngine, authData, transportTarget, contextData,
notifyType, varBinds, **options):
"""Creates a generator to send SNMP notification.