forked from nmstate/nmstate
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
nm: Preserve current IP setting for multiconnect profile
Given a interface is activated by a NM profile of multiconnect, When applying empty state for this interface, Then this interface will get IPv4 and IPv6 disabled. This is because current nmstate code treat multiconnect or NM connection without interface name as not matched, hence `exist_nm_conn` is set to None which lead to nmstate discarding current IP settings. Cloning multiconnect profiles could have risk when NM added more properties impacting activation but nmstate not aware. Hence we create NM connection from scratch in this case by only preserving IP settings from multiconnect. Other non-ip settings applied by multiconnect profile will be discard if not mentioned in desired state. Integration test case included. Resolves: https://issues.redhat.com/browse/RHEL-61890 Signed-off-by: Gris Ge <[email protected]>
- Loading branch information
Showing
2 changed files
with
83 additions
and
24 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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