We have to revoke being able to set "random" here for now, but
it's not a huge issue since the fallback is now in the daemon.
The daemon also supports the full unsigned long long range but
does not allow hex input which means we are stuck with losing the
highest bit for now if we store in integer in PHP.
We could store a string, but then cannot verify it and it would
not be a hex value. Meh.
basically this just offers the option to remove the SourceFile reference and keep the configd action, the call overhead of using configd is quite low anyway and #7515 implements generic caching (which was the intend of the file handle)
Add a generic time based cache option for configd sscript action events, example usage:
[action]
command:/path/to/my/command
type:script_output
cache_ttl=5
cache_ttl is specified in seconds after last started execution.
For some reason it convinces me further that we should fix the
ifid default case with a fallback in dhcp6c because users will
not necessarily make that connection and just raise a bug report.
This commit improves alias save/validate performance by fixing two main issues:
1) Faster unique constraint handling using caching, in order to prevent nested loops we should cache our results while still in the validation cycle.
This required an attribute to count validation cycles so we know the model could not have changed in between, getValidationSequence() helps to reach that goal
2) Alias::getByName() more optimistic caching, also prevening nested loops when locating aliases.
Although this is slighly more optimistic than the previous construction, in practice when validating data the set won't change, if there is a risk of mutations, we should flush the set using the "flush" parameter (same as before, but a bit more sensitive).
Let the user decide on the password and use root as the default,
but then also allow these to be seen on the GUI and stop flapping
options when a header can do the same job now.
Currently it doesn't seem to be possible to reliably set both peer and peer6, but since in the kernel these are organized as two fields on the same vhid we prevent both being set with a validation.
If we would only offer a "peer" field matching the ip protocol, we might have difficulties in the future when both can be provided at the same time.
This commit parses the ifconfig output and offers the result in the interfaces/overview page (tooltip like freq settings).
If any widget failed to import/instantiate/update in the previous logic,
this would halt execution for the entire dashboard. This commit takes
care of these cases, but it cannot account for asynchronous callbacks
executed in the widget logic itself, these should be caught there.