Web-based SNMP config UI does not pass through proxy-host if a value is provided

Description

Steps to reproduce:

1) Log in as an admin user

2) Navigate to Admin -> Configure SNMP Communities by IP Address

3) Look up an arbitrary IP address, e.g. 1.2.3.4

4a) Fill in a distinctive community string, a.g. FOOBAR, for the read community string

4b) Fill in a different IP address, e.g. 10.20.30.40, in the "Proxy Host" input field

5) Click "Save Config"

6) Use the same form to look up the same IP address 1.2.3.4

 

Expected result: "Read Commity" field contains FOOBAR and "Proxy Host" field contains 10.20.30.40

Actual result: "Read Community" carries over, but "Proxy Host" field is empty. Doing a Karaf shell snmp-show-config 1.2.3.4 will show that ProxyForAddress is null, illustrating the same problem.

I inspected the parameters of the configureSNMP event generated by this configuration flow, and proxyHost was not among them, nor is anything resembling that name. Therefore I think this is a simple case of leaving out the linkage between the form field and the corresponding event parameter.

Acceptance / Success Criteria

All fields entered in the SNMP UI are correctly saved and can be retrieved in the Web UI and also in the Karaf shell.

Lucidchart Diagrams

Activity

Show:

Christian Pape September 14, 2021 at 3:12 PM

Merged.

Christian Pape September 13, 2021 at 2:27 PM

Fixed

Details

Assignee

Reporter

Components

Sprint

Fix versions

Affects versions

Priority

PagerDuty

Created August 18, 2021 at 8:24 PM
Updated September 14, 2021 at 3:24 PM
Resolved September 14, 2021 at 3:12 PM