Skip to content
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

Add startmode migration #102

Merged
merged 2 commits into from
Nov 28, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Add nfsroot startmode handling
  • Loading branch information
jcronenberg committed Nov 27, 2024

Verified

This commit was signed with the committer’s verified signature. The key has expired.
jcronenberg Jorik Cronenberg
commit 88d8cfbcef2c33c1414225b87bd844b1a2df79a0
5 changes: 5 additions & 0 deletions src/interface.rs
Original file line number Diff line number Diff line change
@@ -165,6 +165,11 @@ pub struct Nexthop {
pub struct Control {
#[serde(default)]
pub mode: ControlMode,
// ignored
#[serde(rename = "boot-stage")]
pub boot_stage: Option<String>,
// ignored
pub persistent: Option<String>,
}

#[derive(
20 changes: 20 additions & 0 deletions tests/startmode/system-connections/startmode4.nmconnection
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[connection]
id=startmode4
uuid=5571cf47-8af8-4218-9b61-3f0506e3595b
type=dummy
interface-name=startmode4

[ethernet]

[dummy]

[match]

[ipv4]
method=disabled

[ipv6]
addr-gen-mode=default
method=auto

[proxy]
17 changes: 17 additions & 0 deletions tests/startmode/wicked_xml/startmode.xml
Original file line number Diff line number Diff line change
@@ -58,3 +58,20 @@
<enabled>true</enabled>
</ipv6>
</interface>
<interface origin="compat:suse:/etc/sysconfig/network/ifcfg-startmode4">
<name>startmode4</name>
<control>
<mode>boot</mode>
<boot-stage>localfs</boot-stage>
<persistent>true</persistent>
</control>
<firewall/>
<dummy/>
<link/>
<ipv4>
<enabled>true</enabled>
</ipv4>
<ipv6>
<enabled>true</enabled>
</ipv6>
</interface>