Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added SNMP_USER_PERMISSIONS parameter and removed SNMP_USER_STRING parameter #718

Merged
merged 3 commits into from
Dec 3, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions doc/snmp/snmp-schema-addition.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,23 +66,26 @@ In the end this is used to produce */etc/snmp/snmpd.conf*.
"SNMP_USER_AUTH_TYPE":"MD5|SHA|HMAC-SHA-2",
"SNMP_USER_ENCRYPTION_TYPE":"DES|AES",
"SNMP_USER_AUTH_PASSWORD":"<AUTH_PASSWORD_STRING>",
"SNMP_USER_ENCRYPTION_PASSWORD":"<ENCRYPTION_PASSWORD_STRING>"
"SNMP_USER_ENCRYPTION_PASSWORD":"<ENCRYPTION_PASSWORD_STRING>",
"SNMP_USER_PERMISSIONS": "RO|RW"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might be better to use singular "SNMP_USER_PERMISSION" as it can only one value, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed. Fixed.

},
"<SNMP_USER>":{
"SNMP_USER_STRING":"<SNMP_USER_STRING>",
"SNMP_USER_TYPE":"noAuthNoPriv|AuthNoPriv|Priv",
"SNMP_USER_AUTH_TYPE":"MD5|SHA|HMAC-SHA-2",
"SNMP_USER_ENCRYPTION_TYPE":"DES|AES",
"SNMP_USER_AUTH_PASSWORD":"<AUTH_PASSWORD_STRING>",
"SNMP_USER_ENCRYPTION_PASSWORD":"<ENCRYPTION_PASSWORD_STRING>"
"SNMP_USER_ENCRYPTION_PASSWORD":"<ENCRYPTION_PASSWORD_STRING>",
"SNMP_USER_PERMISSIONS": "RO|RW"
},
"<SNMP_USER>":{
"SNMP_USER_STRING":"<SNMP_USER_STRING>",
"SNMP_USER_TYPE":"noAuthNoPriv|AuthNoPriv|Priv",
"SNMP_USER_AUTH_TYPE":"MD5|SHA|HMAC-SHA-2",
"SNMP_USER_ENCRYPTION_TYPE":"DES|AES",
"SNMP_USER_AUTH_PASSWORD":"<AUTH_PASSWORD_STRING>",
"SNMP_USER_ENCRYPTION_PASSWORD":"<ENCRYPTION_PASSWORD_STRING>"
"SNMP_USER_ENCRYPTION_PASSWORD":"<ENCRYPTION_PASSWORD_STRING>",
"SNMP_USER_PERMISSIONS": "RO|RW"
}
}
}
Expand All @@ -99,7 +102,7 @@ Where:
- SNMP_USER_ENCRYPTION_TYPE: String, defines which encryption type will be used for that SNMP user DES or AES.
- SNMP_USER_AUTH_PASSWORD: String, defines which authentication password will be used for that SNMP user.
- SNMP_USER_ENCRYPTION_PASSWORD: String, defines which encryption password will be used for that SNMP user.

- SNMP_USER_PERMISSIONS: String, RO (Read-Only) or RW (Read-Write) defines what will be used for that SNMP user.


New keys:
Expand Down