puresnmp.const module¶
This file contains various values used to avoid magic numbers and strings in the application.
- puresnmp.const.DEFAULT_LISTEN_ADDRESS = '0.0.0.0'¶
The default interface to use when listening to traps. This is flagged with “nosec” as “secure” as this is very much intentional.
- puresnmp.const.DEFAULT_RETRIES = 10¶
Number of retries we attempt when sending out packets before giving up
- puresnmp.const.DEFAULT_TIMEOUT = 6¶
TCP timeout which is used if not manually overridden
- puresnmp.const.ERRORS_STRICT = 'strict'¶
A magic value used to detect strict error-handling
- puresnmp.const.ERRORS_WARN = 'warn'¶
A magic value used to detect lenient error-handling