TWSD-1147 - SNMP: Unable to configure the snmp host from the webui

Review Request #1152 — Created Nov. 13, 2025 and submitted

shuinvy
APV10
rel_apv_10_7
TWSD-1147
austin, kevin.poh, mingji

Modify API for calling SNMP reltaed CLI

As the ticket: https://arraynetworks.atlassian.net/browse/TWSD-1146,
There is changes in CLI.
Original:
snmp host <host_ip> [version] [user_name|community_name] [engine_id] [auth_password] [authorization_level] [priv_password] [port] [auth_proto] [priv_proto]
After changes:
snmp host <host_ip> [version] [user_name|community_name] snmp auth <host_ip> <engine_id> <auth_password> [security_level] [privacy_password] [trap_port] [auth_algo] [encryption_algo]
So I first modify code for calling two CLI for each version of SNMP Server code.
Please check attachment for original changes code(Original_code_for_V1orV2_insert and Original_code_for_V3_for_insert).
Then I found the dataTable is crashed, so I fixed the get data part.
Please check attachment for original changes code(Original_code_for_V1orV2_for_get_data and Original_code_for_V3_for_get_data).

While organizing my code,
I found the code is simalar between code for SNMP Version 1 or 2 and SNMP Version 3,
so I merged the code under the class Server.

I have tested all situation for the insert and show data successfully.
Besides,
I also check the delete function is okay.


kevin.poh
  1. Ship It!
  2. 
      
mingji
  1. Ship It!
  2. 
      
lucille
  1. Ship It!
  2. 
      
shuinvy
kevin.poh
  1. Ship It!
  2. 
      
lucille
  1. Ship It!
  2. 
      
austin
  1. Ship It!
  2. 
      
shuinvy
Review request changed

Status: Closed (submitted)

Loading...