AE-2243 : SNMPv3 authPriv/authNoPriv provisioning inconsistencies: sends invalid payloads (missing priv_pass for authPriv, unnecessary priv_pass/priv_protocol for authNoPriv)
Review Request #1193 — Created Nov. 26, 2025 and submitted
| Information | |
|---|---|
| pmurugaiyan | |
| AMP | |
| amp_3_7_2 | |
| AE-2243 | |
| Reviewers | |
| apoorva.sn, pradeep, shuinvy | |
Fixed the priv_pass payload issue.
The changes has been tested locally.
curl 'https://192.168.85.145:8888/snmpv3/config' \
-H 'Accept: application/json, text/plain, /' \
-H 'Accept-Language: en-GB,en;q=0.7' \
-H 'Cache-Control: no-cache' \
-H 'Connection: keep-alive' \
-H 'Content-Type: application/json' \
-b 'csrftoken=aZ5c1fNHnU8PkGkAtPp4eTlmWJpjeqcF; django_language=en; csrf_token=aZ5c1fNHnU8PkGkAtPp4eTlmWJpjeqcF; hive_key=1; current_user=admin; hive_sess=a5332469-e270-41c5-b2f7-20c936f6376f' \
-H 'Origin: https://192.168.85.145:8888' \
-H 'Pragma: no-cache' \
-H 'Referer: https://192.168.85.145:8888/app/' \
-H 'Sec-Fetch-Dest: empty' \
-H 'Sec-Fetch-Mode: cors' \
-H 'Sec-Fetch-Site: same-origin' \
-H 'Sec-GPC: 1' \
-H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/142.0.0.0 Safari/537.36' \
-H 'X-CSRFToken: aZ5c1fNHnU8PkGkAtPp4eTlmWJpjeqcF' \
-H 'sec-ch-ua: "Chromium";v="142", "Brave";v="142", "Not_A Brand";v="99"' \
-H 'sec-ch-ua-mobile: ?0' \
-H 'sec-ch-ua-platform: "macOS"' \
--data-raw '{"device_ip":"192.168.85.101","device_type":"vAPV","username":"peri","auth_pass":"Array@123","auth_protocol":"MD5","sec_level":"authNoPriv","enabled":true}' \
--insecurecurl 'https://192.168.85.145:8888/snmpv3/config' \
-H 'Accept: application/json, text/plain, /' \
-H 'Accept-Language: en-GB,en;q=0.7' \
-H 'Cache-Control: no-cache' \
-H 'Connection: keep-alive' \
-H 'Content-Type: application/json' \
-b 'csrftoken=aZ5c1fNHnU8PkGkAtPp4eTlmWJpjeqcF; django_language=en; csrf_token=aZ5c1fNHnU8PkGkAtPp4eTlmWJpjeqcF; hive_key=1; current_user=admin; hive_sess=a5332469-e270-41c5-b2f7-20c936f6376f' \
-H 'Origin: https://192.168.85.145:8888' \
-H 'Pragma: no-cache' \
-H 'Referer: https://192.168.85.145:8888/app/' \
-H 'Sec-Fetch-Dest: empty' \
-H 'Sec-Fetch-Mode: cors' \
-H 'Sec-Fetch-Site: same-origin' \
-H 'Sec-GPC: 1' \
-H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/142.0.0.0 Safari/537.36' \
-H 'X-CSRFToken: aZ5c1fNHnU8PkGkAtPp4eTlmWJpjeqcF' \
-H 'sec-ch-ua: "Chromium";v="142", "Brave";v="142", "Not_A Brand";v="99"' \
-H 'sec-ch-ua-mobile: ?0' \
-H 'sec-ch-ua-platform: "macOS"' \
--data-raw '{"device_ip":"192.168.85.101","device_type":"vAPV","username":"peri","auth_pass":"Peri@1234","auth_protocol":"MD5","sec_level":"authPriv","enabled":true,"priv_pass":"peri","priv_protocol":"DES"}' \
--insecure
Testing Done: |
|
|---|
