diff options
author | Ilya Etingof <etingof@gmail.com> | 2019-02-10 16:38:35 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-10 16:38:35 +0100 |
commit | 588b9b902d191d8010cb6b247fcb07887d59542c (patch) | |
tree | 419b01d2598e91331db784ac3a6675324aba8c24 /examples/v3arch/asyncore/proxy/command/v2c-to-v1-conversion.py | |
parent | 9664858b145140a4fbb2a22b633c1ab41c2555bd (diff) | |
download | pysnmp-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/proxy/command/v2c-to-v1-conversion.py')
-rw-r--r-- | examples/v3arch/asyncore/proxy/command/v2c-to-v1-conversion.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/v3arch/asyncore/proxy/command/v2c-to-v1-conversion.py b/examples/v3arch/asyncore/proxy/command/v2c-to-v1-conversion.py index c676e9b5..69916cb0 100644 --- a/examples/v3arch/asyncore/proxy/command/v2c-to-v1-conversion.py +++ b/examples/v3arch/asyncore/proxy/command/v2c-to-v1-conversion.py @@ -43,7 +43,7 @@ snmpEngine = engine.SnmpEngine() # UDP over IPv4 config.addTransport( snmpEngine, - udp.domainName + (1,), + udp.DOMAIN_NAME + (1,), udp.UdpTransport().openServerMode(('127.0.0.1', 161)) ) @@ -52,7 +52,7 @@ config.addTransport( # UDP over IPv4 config.addTransport( snmpEngine, - udp.domainName + (2,), + udp.DOMAIN_NAME + (2,), udp.UdpTransport().openClientMode() ) @@ -80,7 +80,7 @@ config.addTargetParams(snmpEngine, 'distant-agent-auth', 'distant-area', config.addTargetAddr( snmpEngine, 'distant-agent', - udp.domainName + (2,), ('104.236.166.95', 161), + udp.DOMAIN_NAME + (2,), ('104.236.166.95', 161), 'distant-agent-auth', retryCount=0, tagList='distant' ) |