Query kea-ctrl-socket for existing leases since the in-memory database is mutated when using lease-del, the csv files still show leases for a while that do not exist in memory anymore until a cleanup happens periodically.
mvc: Shell: rewrite exec_safe() to avoid vsprintf() complications; closes #9703
Only support %s and %% using preg_replace_callback() and throw
3 distinct TypeError cases making sure the resulting command is
the dummy command then.
We're not overly interested in how well escapeshellarg() works,
but we ensure it's being called always.
(cherry picked from commit b25bdee3b4d76b4e722d30fadd3591d90e30b50c)
(cherry picked from commit aef0172f5596683f4dba6a805f80b85116653dff)
Services: Dnsmasq DNS & DHCP: Since client-id is a valid IPv4 reservation type as well, ensure the lease view handles it correctly (#10003)
Remove some of the heuristics with the adding lease button. We cannot assume what the user want, so just offer both mac and hwaddr for any add lease command. The dnsmasq GUI we built has no constraints regarding this, and the application below renders both if given since there is no logic constraint here either.
(cherry picked from commit 15ba56587119e9998ac65829f62592e3e63d2389)
firewall: fix mvc code vs. legacy rules display issues #9931
These functions only pertain to printing automatic rules in the
old GUI so eventually we can all scrap them.
(cherry picked from commit 095a4d53a89b81c1726d1e342d9bb83e1b93e184)
make: make `vim' target even more lazy
Match the file name without left anchor and look for
a partial directory match if a director was specified.
(cherry picked from commit 286dfcb6a660105ec44955ee8ce8693af7fdb53a)
build: better PRODUCT_ZFS handling
Only VM images really handle ZFS. While here move the handling
to the core repository so rc.loader knows what to do.
We only need a 10 second boot relay on installer vga/serial/dvd/nano.
Also go back to setting the pool name using PRODUCT_ZFS which is
now safeguarded through ALLOWED/REQUESTED.
Services: Kea: DHCPv4/6: Add type system with validation and encoding for supported DHCP options (#9995)
* Services: Kea: DHCPv4/6: Add type system with validation and encoding for supported DHCP options
This adds a type framework using MAPS extracted from data inside the KEA documentation.
Most flat options have a validator and encoder added. Users are guided via validation messages which types are correct choices for each code selection.
Advanced options (structured, nested, encapsulated) do not have an own validator or encoder yet, they fall back to hex.
Unknown options that are valid in the IANA lists, but maybe not inside KEA yet, also fallback to hex.
The user can always bail out of the type system and always use hex instead for any option.
* CodeSource was missing, preventing match_code and code to be evaluated independently upon instantiation of the field type
* Clean up some failguards since if those conditions would be true I don't want to fail silently
* Turn encoding into a map so the code is easier readable, add missing uint length validation
* Do not hide this error silently
[33 lines not shown]
bootgrid: set visibility hidden for base_bootgrid_table
Since the structure is used to initialize the bootgrid, we shouldn't render
the original structure possibly causing a flash of content.