interfaces: fix media setting
So ifconfig returns:
media: autoselect (2500Base-T <full-duplex>)
Which throws off the check because while 2500Base-T is automatically
set it is not forced. I'm unsure the code is supposed to do this but
better commit and revert than forget about it again. Need to check
14.2 / 25.1 to see what it says.
firmware: allow replacements to be read at runtime
This is mainly for consumption in opnsense-patch to address a weakness
patching .in files. Not my favourite way of duplicating things in
VERSIONFILE but it is the most direct way to access information we do
not have at runtime. Adding another file just for this seems silly.
firmware: permanently remove unbound/duckdb migration script #7494
We can bring it back when needed or continue to work on cleanups
described in the ticket.
(cherry picked from commit dbdb3c00a37fbb61aad52e2866f6a319e4ecd781)
firmware: change these strings
1. The spinning cog is on the second line so if we shorten "your"
it is properly adjusted again.
2. "device" may be a VM,
Fully aware this is overkill in terms of losing these translations,
but this has bugged me for a long time.
(cherry picked from commit d9abaadc45d1ad91a719e151778d47d5e649eb7e)
system: change revision time to match peristed_at timestamp
This only pertains to config.xml contents, not backup file names.
(cherry picked from commit c81509ddd681b9485143901dc503b664e90079e5)
interface/vip: Add grid formatter to hide row field content based on mode (#8940)
* interface/vip: Add generalized grid formatter that uses style declarations in dialogVip grid_view to hide and show the same fields based on selected type, e.g. CARP only shows carp related fields in the grid all else will be empty string
* Variable rename for clarity
* Remove usage of delimiters in favor of an array
* remove comment
* Update src/opnsense/mvc/app/controllers/OPNsense/Interfaces/VipController.php
Co-authored-by: Franco Fichtner <franco at opnsense.org>
* Use grid_view instead to simplify mode hiding row logic in formatter
* remove stray newline
---------
[3 lines not shown]
mvc: more permission changes for these GUI files
XXX these spots because AppConfig has an ownership hint but we
do not want to taint objects with referencing the class all the
time. Ideally we would fetch the needed ownership on construct
and store it beside the file name.
(cherry picked from commit 21cd8e37430b8a46fe2c1320664fee3c4599a880)
ui: flatten nested containers for grid inclusion (#8939)
This change makes sure that if models contain nested container data, these are properly rendered in grids. An example is KEA DHCPv4, Reservations grid, which has a lot of options data nested under `option_data`.
mvc: more permission changes for these GUI files
XXX these spots because AppConfig has an ownership hint but we
do not want to taint objects with referencing the class all the
time. Ideally we would fetch the needed ownership on construct
and store it beside the file name.