-
Notifications
You must be signed in to change notification settings - Fork 68
Network persistent connections handling RC1 #2431
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Extends PF/Switch to include a label and description, providing additional context for toggles.
This component renders brief notes or clarifications with an optional icon, using the <strong> HTML element to emphasize the text. It is intended for non-<Alert> annotations that still require emphasis.
This introduces a UI warning that should be shown only when all available network connections are configured for installation use only. Currently, the warning is always rendered; future commits should implement the proper logic to show it conditionally.
Introduce the AllConnectionsStatusAlert component to display a contextual summary of how network connections are configured (installation-only, persistent, or mixed). The alert supports optional bulk actions to adjust all connections and is conditionally rendered based on connection count and mode. It replaces the static warning from the previous commit, but similar to it is always rendered in mixed mode until future commits implement the proper logic to show it conditionally depending on the real connections status.
This adds a toggle allowing users to mark a network connection as either transient (used only during installation) or persistent (available in the installed system). Also includes minor related fixes: - Adjusted flex direction in SwitchEnhanced - Added missing exports in components/core
A tiny bug detected by unit tests added in previous commit.
Introduced by mistake in bdf3b15
Also add missing unit tests for the UI control responsible for toggling the "keep" flag on a connection using this mutation.
Although its "bulk actions" are still pending and not functional at all.
Allows expressions like `if (!isEmpty(variable)) doSomething()` to work when `variable` is a boolean (e.g., `true`). An example use case can be found in `types/network.ts`, which was adapted to use the updated function.
…persisted" This reverts commit 5d8b33d.
Replaced the previous AllConnectionsStatusAlert component with a simpler NoPersistentConnectionsAlert that displays a warning only when all network connections are set to be transient (not persisted in the installed system). Removed unused complexity such as mixed-mode detection and global actions, which may be revisited in future iterations.
Forgotten in de16a48
The nested hash string values are surrounded by quotes when using `.to_string()` but not with `try_into()`.
) ## Problem When a connection is created bind to an interface renamed with the kernel ifname kernel cmdline argument, it could be problematic as the parameter is not kept after the installation. - https://bugzilla.suse.com/show_bug.cgi?id=1241969 - https://bugzilla.suse.com/show_bug.cgi?id=1237327 ## Solution Create a systemd network link file for renaming the interface after the installation ## Testing - *Added unit test for copying the link systemd network link files** - *Tested manually* 
imobachgs
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need these fixes in RC1. But I would like to have a closer look when working on the master branch version.
| ieee_8021x_config: Default::default(), | ||
| autoconnect: true, | ||
| state: Default::default(), | ||
| keep: true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
master: Should we consider using copy? For me it sounds inconsistent having keep and copy.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what about: persistent ... at the end it is about persist or not to disk using the enum NMSettingsAddConnection2Flags or enum NMSettingsUpdate2Flags
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I mean, this is the connection one, so, for me having it a persist or persistent looks better while for the general state it is about copying or not copying the persistent configuration.
| State(state): State<NetworkServiceState>, | ||
| Path(id): Path<String>, | ||
| ) -> Result<impl IntoResponse, NetworkError> { | ||
| if id == "all" { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
master: IMHO there is too much logic in this function.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree
Prepare to release Agama 16: * #1868 * #2347 * #2356 * #2373 * #2393 * #2402 * #2404 * #2406 * #2408 * #2409 * #2410 * #2411 * #2412 * #2413 * #2414 * #2415 * #2416 * #2417 * #2418 * #2419 * #2420 * #2421 * #2422 * #2423 * #2424 * #2425 * #2426 * #2427 * #2428 * #2431 * #2433 * #2434 * #2436 * #2437 * #2438 * #2439 * #2440 * #2441 * #2442 * #2443 * #2445 * #2446 * #2450 * #2451 * #2452 * #2453 * #2454 * #2455 * #2456 * #2457 * #2458 * #2460 * #2461 * #2462 * #2463 * #2464 * #2465 * #2466 * #2467 * #2468 * #2469 * #2470 * #2471 * #2472 * #2473 * #2474 * #2475 * #2476 * #2478 * #2479 * #2480 * #2482 * #2483 * #2484 * #2485 * #2487 * #2488 * #2489 * #2490 * #2491 * #2493 * #2494 * #2495 * #2496 * #2497 * #2498 * #2499 * #2502 * #2505 * #2507 * #2509 * #2511 * #2512 * #2513 * #2515 * #2516 * #2517 * #2518 * #2520 * #2523 * #2524 * #2525
Changes added by #2402 but targeting rc1.