Added a dropdown for selecting the SNMP Interface type (#9727)

* Added a dropdown for selecting the SNMP Interface type

* Added port type column to the SNMP device interfaces table
This commit is contained in:
Manuel Ceroni 2025-10-07 18:56:38 +02:00 committed by GitHub
parent b1a64ac899
commit bf8782b8c0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 34 additions and 0 deletions

View file

@ -2384,6 +2384,7 @@ local known_parameters = {
["toggle_snmp_qos_mib_polling"] = validateBool,
["toggle_snmp_alerts_port_status_change"] = validateBool,
["toggle_snmp_alerts_port_errors"] = validateBool,
["snmp_interface_port_type_change"] = validateSingleWord,
["snmp_port_load_threshold"] = validateNumber,
["toggle_midnight_stats_reset"] = validateBool,
["toggle_ndpi_flows_rrds"] = validateBool,
@ -2615,6 +2616,7 @@ local known_parameters = {
["snmp_admin_status"] = validateSNMPstatus, -- same as snmp_status but for the admin status
["snmp_if_type"] = validateNumber, -- snmp interface type (see snmp_utils.lua fnmp_iftype)
["iftype_filter"] = validateSingleWord, -- SNMP iftype filter name
["port_type"] = validateSingleWord, -- SNMP Interface Port Type
["host_quota"] = validateEmptyOr(validateNumber), -- max traffi quota for host
["allowed_interface"] = validateEmptyOr(validateInterface), -- the interface an user is allowed to configure
["allowed_networks"] = validateNetworksList, -- a list of networks the user is allowed to monitor