Repository navigation
Conversation
Author
|
Opened upstream as CERALIVE#33. The branch is kept. |
Author
|
I noticed this fork PR has upstream history: CERALIVE#33 (open). A closed or merged fork PR does not mean it was merged upstream. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
An IP family in a cellular policy now reaches the saved NetworkManager profile. This lets a caller request IPv6-only service instead of having that request silently ignored.
ipv4,ipv6, andipv4v6select the saved profile's IP methods.ipv4v6default remain compatible. Low-level profile calls can still omit the family to leave methods alone.Why
The policy already carries an IP family, but the writer has ignored it. Honoring it is a first step toward IPv6-only carriers; end-to-end support still needs IPv6-aware consumers and CLAT for IPv4 hotspot clients. CeraUI currently forces IPv4 with
ipv6.method ignore, and those profiles read back here as unknown.The existing NetworkManager port writes both methods together and reads saved settings back. Saving a profile does not reconnect an active modem.
For an
ipv4request, shouldipv6.methoduseignoreto match CeraUI, or keepdisabledto turn IPv6 off on the interface?How to verify
Commands and validation
bun test --max-concurrency 1 control/src/backend/nm-ip-family.test.ts cli/src/policy-family.test.ts: 14 pass, 0 fail. Covers create/update mappings, unchanged low-level argv on omission, unknown readback without drift, known mismatch convergence, and saved settings changed independently of the request. The fake has its own writer and readback parser.dbus-run-session -- bun test --max-concurrency 1: 1,506 pass, 0 fail, including FM350 coverage.bun run lintandbun run typecheck: pass.bun run --cwd control verify:tarball: pass, 412 entries.bun run --cwd control verify:consumers: pass with Node 26.Tests ran with Bun 1.4.3. No live modem or SIM test is claimed.
Review follow-up
Missing
appliedIpFamilyis now unknown rather than drift. The required policy field and dual-stack default are retained for 1.x readers. Saved-method readback is checked against independently changed settings, the fake no longer imports the production profile builder or patch mapper, and the field-count comments distinguish base fields from optional IP methods.Risks
Behavior changes and limits
ipv4v6; CLI JSON omission converts to that default. Low-level port omission still writes no methods.GsmProfile.ipFamilyasappliedIpFamilyto enable known-mismatch reconciliation. Unknown readback does not prove the family was applied.auto/ignore, manual settings, and disabled/disabled stay unknown.ipv6.method disabledrequires NetworkManager 1.20 or newer. Dual stack requests both automatic methods without requiring both to succeed.may-fail, activation policy and ModemManager bearer operations are unchanged. FM350-GL support is retained.Rollback: revert the profile-family changes.
Checklist