configure_snmp_agent() failed on OPNsense 26.x with HTTP 500 at the configure step: general/set named fields the os-net-snmp model does not have (contact, location, sysobjid, bindip) and sent listen in the shape get returns.
Only fields the model has: enabled, community, listen (a string; "" for a DNS name, which means every address, as before), and syscontact/syslocation.
Contact and location only when the caller gives them. Sending "" would have blanked what the operator set.
The test API now refuses an unknown field or a non-string value with a 500, as 26.x does. Its settings are the shape a 26.7 box serves.
`configure_snmp_agent()` failed on OPNsense 26.x with HTTP 500 at the configure step: `general/set` named fields the os-net-snmp model does not have (`contact`, `location`, `sysobjid`, `bindip`) and sent `listen` in the shape `get` returns.
- Only fields the model has: `enabled`, `community`, `listen` (a string; `""` for a DNS name, which means every address, as before), and `syscontact`/`syslocation`.
- Contact and location only when the caller gives them. Sending `""` would have blanked what the operator set.
- The test API now refuses an unknown field or a non-string value with a 500, as 26.x does. Its settings are the shape a 26.7 box serves.
Closes #36
The configure step posted contact, location, sysobjid and bindip, and
listen in the shape get returns. OPNsense 26.x refuses a field its model
does not have with HTTP 500, so the setup failed on every current box.
It now sends syscontact/syslocation, listen as a string, and contact and
location only when the caller gives them: an empty one would have blanked
the operator's.
_write_snmp_agent_config came out at complexity 11 and failed the
standard job. The community check and the listen address now live in
their own helpers; the baseline follows the file's new length.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
configure_snmp_agent()failed on OPNsense 26.x with HTTP 500 at the configure step:general/setnamed fields the os-net-snmp model does not have (contact,location,sysobjid,bindip) and sentlistenin the shapegetreturns.enabled,community,listen(a string;""for a DNS name, which means every address, as before), andsyscontact/syslocation.""would have blanked what the operator set.Closes #36