mvc: unify migration message returns a bit
Mostly noticed due to "check log for details" which now in
most cases is not relevant since we use the verbose flag.
Services: Kea DHCPv4/6: Fix missing visual cues for manual mode in DDNS and DHCPv4/6 (#10340)
(cherry picked from commit 720c791b15fbbbbde73c55d818fee63468bcd3ab)
Kea: Hook up reservation.next_server (#10344)
This field was added to the Kea dialogReservation4.xml form in
https://github.com/opnsense/core/pull/8890, however this specific option
was not properly hooked up and did not generate the expected config,
preventing netboot scenarios that rely on next-server from being set on
a per-reservation basis (the per-subnet variant of this option does work
fine).
This commit hooks it up to generate the expected "next-server" Kea
config entry on a per-reservation basis.
(cherry picked from commit e209de9719943a5224a06f8e155629d1052ddcba)
Interfaces: Assignments - work in progress for https://github.com/opnsense/core/issues/9945
In order to migrate the interface assignments, we need to think of a way to use the differently named xml nodes for interfaces (wan, lan, ..) into something that closely resembles a standard model implementation.
Since we can't match these nodes in our statically defined model xmls, the main idea is to flush all via an in-memory model with a separate load [construct] and save hook [serializeToConfig].
The next challenge is to "stash" updates and wait for "apply" in certain cases, for this we add some temporary attributes to the configuration which are synced after the actual system change has happend (pending_action, pending_if). When succesfully applied, the apply function cleans up the final stage of the configuration to make everything consistent again.
Interfaces: Assignments - work in progress for https://github.com/opnsense/core/issues/9945
In order to migrate the interface assignments, we need to think of a way to use the differently named xml nodes for interfaces (wan, lan, ..) into something that closely resembles a standard model implementation.
Since we can't match these nodes in our statically defined model xmls, the main idea is to flush all via an in-memory model with a separate load [construct] and save hook.
mvc:Javascript - setFormData : allow passing of data- atributes for select items, this for example offers the option to use data-icon on selectpickers. for https://github.com/opnsense/core/issues/9945
Interfaces: Assignments - work in progress for https://github.com/opnsense/core/issues/9945
In order to migrate the interface assignments, we need to think of a way to use the differently named xml nodes for interfaces (wan, lan, ..) into something that closely resembles a standard model implementation.
Since we can't match these nodes in our statically defined model xmls, the main idea is to flush all via an in-memory model with a separate load [construct] and save hook.
Firewall: NAT: Add the same UI design to the NAT pages as the firewall page from 18533b4, but slightly adjusted as NAT rules do not have sort_order or priority groups, so all grouping happens either by category, or to a synthetic automatic category if the rules contain an is_automatic true boolean.
Firewall: Rules [new]: Always show automatic and legacy rules, and a few more UI tweaks (#10355)
Always group rules by their priority/type in the filter grid and reuse the
same rule type metadata for both bucket labels and icons. When tree view is
enabled, categorized non-automatic rules are grouped one level deeper by
category, while automatic and uncategorized rules remain directly below their
rule type bucket.
This keeps the default view structured without relying on a mixed flat/tree
array and makes the tree toggle an additive category grouping layer.
The front end doesn't need any fake category for the automatic rules anymore, since it's decided by priority group now in the response handler logic
Render icons for the top tree level groups, remove counts behind them to reduce visual noise
Remove the count labels from interfaces, as they imply something has to be done as they resemble event badges
Rework the buttons, only use icons with tooltips, always show the expand tree button
[12 lines not shown]