This repository has been archived by the owner on Dec 17, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: updated README.md * feat: deleting config (#38) * feat: added SNMPv3 support * fix: added noAuth type and noPriv type for AuthProtocol and privProtocol respectively * fix: fixed the default type for authProtocol and privProtocol and make securityengineId become configurable * refactor: reformatted using black * fix: v1,v2,v3 support * fix: added more options for AuthProtocols and PrivProtocols * fix: added todo for logging Co-authored-by: weliasz <77732905+weliasz@users.noreply.github.com> Co-authored-by: Mayur Pipaliya <mayurah@users.noreply.github.com>
- Loading branch information
1 parent
6d7fb71
commit d621dcc
Showing
3 changed files
with
115 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
from pysnmp.entity import config | ||
|
||
AuthProtocolMap = { | ||
"MD5": config.usmHMACMD5AuthProtocol, | ||
"SHA": config.usmHMACSHAAuthProtocol, | ||
"SHA224": config.usmHMAC128SHA224AuthProtocol, | ||
"SHA256": config.usmHMAC192SHA256AuthProtocol, | ||
"SHA384": config.usmHMAC256SHA384AuthProtocol, | ||
"SHA512": config.usmHMAC384SHA512AuthProtocol, | ||
"NONE": config.usmNoAuthProtocol, | ||
} | ||
|
||
PrivProtocolMap = { | ||
"DES": config.usmDESPrivProtocol, | ||
"3DES": config.usm3DESEDEPrivProtocol, | ||
"AES": config.usmAesCfb128Protocol, | ||
"AES128": config.usmAesCfb128Protocol, | ||
"AES192": config.usmAesCfb192Protocol, | ||
"AES192BLMT": config.usmAesBlumenthalCfb192Protocol, | ||
"AES256": config.usmAesCfb256Protocol, | ||
"AES256BLMT": config.usmAesBlumenthalCfb256Protocol, | ||
"NONE": config.usmNoPrivProtocol, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters