summaryrefslogtreecommitdiff
path: root/examples/v3arch/asyncore/agent/ntforg/multiple-different-notifications-at-once.py
diff options
context:
space:
mode:
authorIlya Etingof <etingof@gmail.com>2019-02-10 16:38:35 +0100
committerGitHub <noreply@github.com>2019-02-10 16:38:35 +0100
commit588b9b902d191d8010cb6b247fcb07887d59542c (patch)
tree419b01d2598e91331db784ac3a6675324aba8c24 /examples/v3arch/asyncore/agent/ntforg/multiple-different-notifications-at-once.py
parent9664858b145140a4fbb2a22b633c1ab41c2555bd (diff)
downloadpysnmp-git-588b9b902d191d8010cb6b247fcb07887d59542c.tar.gz
Uppercase global constants (#238)
This is a massive patch essentially upper-casing global/class attributes that mean to be constants. Some previously exposed constants have been preserved for compatibility reasons (notably, in `hlapi`), though the rest might break user code relying on pysnmp 4.
Diffstat (limited to 'examples/v3arch/asyncore/agent/ntforg/multiple-different-notifications-at-once.py')
-rw-r--r--examples/v3arch/asyncore/agent/ntforg/multiple-different-notifications-at-once.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/v3arch/asyncore/agent/ntforg/multiple-different-notifications-at-once.py b/examples/v3arch/asyncore/agent/ntforg/multiple-different-notifications-at-once.py
index 597778b0..e1781416 100644
--- a/examples/v3arch/asyncore/agent/ntforg/multiple-different-notifications-at-once.py
+++ b/examples/v3arch/asyncore/agent/ntforg/multiple-different-notifications-at-once.py
@@ -43,7 +43,7 @@ config.addTargetParams(snmpEngine, 'my-creds-1', 'my-area', 'noAuthNoPriv', 1)
config.addV3User(
snmpEngine, 'usr-md5-none',
- config.usmHMACMD5AuthProtocol, 'authkey1'
+ config.USM_AUTH_HMAC96_MD5, 'authkey1'
)
config.addTargetParams(snmpEngine, 'my-creds-2', 'usr-md5-none', 'authNoPriv')
@@ -51,20 +51,20 @@ config.addTargetParams(snmpEngine, 'my-creds-2', 'usr-md5-none', 'authNoPriv')
# a target name
config.addTransport(
snmpEngine,
- udp.domainName,
+ udp.DOMAIN_NAME,
udp.UdpSocketTransport().openClientMode()
)
# First target
config.addTargetAddr(
snmpEngine, 'my-nms-1',
- udp.domainName, ('104.236.166.95', 162),
+ udp.DOMAIN_NAME, ('104.236.166.95', 162),
'my-creds-1',
tagList='all-my-managers'
)
# Second target
config.addTargetAddr(
snmpEngine, 'my-nms-2',
- udp.domainName, ('104.236.166.95', 162),
+ udp.DOMAIN_NAME, ('104.236.166.95', 162),
'my-creds-2',
tagList='all-my-managers'
)