summaryrefslogtreecommitdiff
path: root/examples/v3arch/asyncore/agent/ntforg/v2c-trap-with-notification-objects.py
diff options
context:
space:
mode:
authorIlya Etingof <etingof@gmail.com>2016-04-01 22:58:56 +0200
committerIlya Etingof <etingof@gmail.com>2016-04-01 22:58:56 +0200
commit020791a97232849c9504024834906dd4a4ffb36c (patch)
tree6e5d69aa01877ee004efb77645b8148e586610cc /examples/v3arch/asyncore/agent/ntforg/v2c-trap-with-notification-objects.py
parent9541f201e33cd613995cee2e7a7656aa687deb51 (diff)
downloadpysnmp-git-020791a97232849c9504024834906dd4a4ffb36c.tar.gz
pep8 reformatted
Diffstat (limited to 'examples/v3arch/asyncore/agent/ntforg/v2c-trap-with-notification-objects.py')
-rw-r--r--examples/v3arch/asyncore/agent/ntforg/v2c-trap-with-notification-objects.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/v3arch/asyncore/agent/ntforg/v2c-trap-with-notification-objects.py b/examples/v3arch/asyncore/agent/ntforg/v2c-trap-with-notification-objects.py
index 4d8f1756..c86af227 100644
--- a/examples/v3arch/asyncore/agent/ntforg/v2c-trap-with-notification-objects.py
+++ b/examples/v3arch/asyncore/agent/ntforg/v2c-trap-with-notification-objects.py
@@ -83,7 +83,7 @@ config.addNotificationTarget(
# Allow NOTIFY access to Agent's MIB by this SNMP model (2), securityLevel
# and SecurityName
config.addContext(snmpEngine, '')
-config.addVacmUser(snmpEngine, 2, 'my-area', 'noAuthNoPriv', (), (), (1,3,6))
+config.addVacmUser(snmpEngine, 2, 'my-area', 'noAuthNoPriv', (), (), (1, 3, 6))
# *** SNMP engine configuration is complete by this line ***
@@ -94,7 +94,7 @@ ntfOrg = ntforg.NotificationOriginator()
ntfOrg.sendVarBinds(
snmpEngine,
'my-notification', # notification targets
- None, '', # contextEngineId, contextName
+ None, '', # contextEngineId, contextName
rfc1902.NotificationType(
rfc1902.ObjectIdentity('IF-MIB', 'linkUp'),
instanceIndex=instanceIndex,