diff options
author | elie <elie> | 2012-07-19 16:37:04 +0000 |
---|---|---|
committer | elie <elie> | 2012-07-19 16:37:04 +0000 |
commit | 1017f68c54eb27902ce81f0071053b0dcdafdc53 (patch) | |
tree | c9d4303feef978bf85447c2516f99781b822276a /pysnmp/entity/rfc3413/ntforg.py | |
parent | cffe984acbb34b833dd5646e8e0d7610fe6ece6e (diff) | |
download | pysnmp-git-1017f68c54eb27902ce81f0071053b0dcdafdc53.tar.gz |
fix to sendNotification() to make it actually sending many
notifications chosen by a tag
Diffstat (limited to 'pysnmp/entity/rfc3413/ntforg.py')
-rw-r--r-- | pysnmp/entity/rfc3413/ntforg.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/pysnmp/entity/rfc3413/ntforg.py b/pysnmp/entity/rfc3413/ntforg.py index 5e1c95bb..e8527f62 100644 --- a/pysnmp/entity/rfc3413/ntforg.py +++ b/pysnmp/entity/rfc3413/ntforg.py @@ -134,7 +134,7 @@ class NotificationOriginator: snmpEngine, notificationTarget ) - debug.logger & debug.flagApp and debug.logger('sendNoification: notifyTag %s notifyType %s' % (notifyTag, notifyType)) + debug.logger & debug.flagApp and debug.logger('sendNoification: notifyTag %s, notifyType %s' % (notifyTag, notifyType)) contextMibInstrumCtl = self.__context.getMibInstrum( contextName @@ -151,6 +151,8 @@ class NotificationOriginator: securityName, securityLevel ) = config.getTargetParams(snmpEngine, params) + debug.logger & debug.flagApp and debug.logger('sendNoification: notifyTag %s yields: transportDomain %s, transportAddress %r, securityModel %s, securityName %s, securityLevel %s' % (notifyTag, transportDomain, transportAddress, securityModel, securityName, securityLevel)) + # 3.3.1 XXX # XXX filtering's yet to be implemented # filterProfileName = config.getNotifyFilterProfile(params) @@ -290,7 +292,7 @@ class NotificationOriginator: snmpEngine.transportDispatcher.jobStarted(id(self)) - return sendPduHandle + return sendPduHandle # XXX # move/group/implement config setting/retrieval at a stand-alone module |