Skip to content

Add PUT API for aliasesresolveinterval #204

@Anupam-Panda

Description

@Anupam-Panda

Is your feature request related to existing pfSense functionality that is missing from the API? Please describe.
Yes. Please follow https://docs.netgate.com/pfsense/en/latest/firewall/aliases.html (Search for "Aliases Hostnames Resolve Interval on System > Advanced, Firewall & NAT tab")

Is your feature request related to a problem? Please describe.
A good to have functionality for increasing/decreasing the frequency of hostname resolve in alias. It is not always possible to set things from UI all the time. This value particularly will be helpful in certain scenarios to increase/decrease the load on server.

Describe the solution you'd like
Add an PUT API to set a new value (in Seconds) against the "aliasesresolveinterval" XML element in config.xml (The default value set is 300 seconds as per the official document).

Describe alternatives you've considered
Change from UI or some automation to add/replace the value.

Additional context
NOTE: by default in config.xml the attribute "aliasesresolveinterval" is not present after a fresh install. It appears when we change the time interval value. At least what I had observed.

Want to mention, a big thanks for waht you are doing in this space.

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions