diff --git a/Cargo.lock b/Cargo.lock index c3b3a51..b56dd1c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -701,9 +701,9 @@ dependencies = [ [[package]] name = "nispor" -version = "1.2.19" +version = "1.2.21" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9cd23dbe46d34178505027dc6b39446d3ce4e726fbeb90f397f1caa1f3bcdd4e" +checksum = "543c422bf0ff04f6c632e55136336a3064f842631bdd997fa4ef7546e2e016c9" dependencies = [ "ethtool", "futures", @@ -717,6 +717,7 @@ dependencies = [ "serde", "serde_json", "tokio", + "wl-nl80211", ] [[package]] @@ -771,9 +772,9 @@ dependencies = [ [[package]] name = "nmstate" -version = "2.2.36" +version = "2.2.38" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fa6cd6a9190ca11fed3b21fa37d85c958d54cd8b9bf4612052fc2f1a266eb611" +checksum = "e46cc1c170b6de8b1e7573f09e30e8ea460cecef1f53eb0242295d59b2d2a060" dependencies = [ "log", "nispor", @@ -1373,6 +1374,27 @@ dependencies = [ "memchr", ] +[[package]] +name = "wl-nl80211" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5cffcf1e1dca38467779e22768bfc7f294f1b7b3bd99727edf13280eb2429789" +dependencies = [ + "anyhow", + "bitflags 2.6.0", + "byteorder", + "futures", + "genetlink", + "log", + "netlink-packet-core", + "netlink-packet-generic", + "netlink-packet-utils", + "netlink-proto", + "netlink-sys", + "thiserror", + "tokio", +] + [[package]] name = "zbus" version = "1.9.3" diff --git a/Cargo.toml b/Cargo.toml index 4c50a23..7ba6594 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,7 +13,7 @@ clap = { version = "4.5.20", features = ["cargo"] } env_logger = "0.11.5" log = "0.4.22" network-interface = "2.0.0" -nmstate = { version = "2.2.36", features = ["gen_conf"] } +nmstate = { version = "2.2.38", features = ["gen_conf"] } serde = { version = "1.0.214", features = ["derive"] } serde_yaml = "0.9.34" configparser = "3.1.0" diff --git a/testdata/generate/expected/eth1-port.nmconnection b/testdata/generate/expected/eth1-port.nmconnection index 2c81d1c..4801abf 100644 --- a/testdata/generate/expected/eth1-port.nmconnection +++ b/testdata/generate/expected/eth1-port.nmconnection @@ -1,6 +1,6 @@ [connection] autoconnect=true -autoconnect-slaves=-1 +autoconnect-slaves=1 id=eth1-port interface-name=eth1 master=br1 diff --git a/testdata/generate/expected/ovs0-port.nmconnection b/testdata/generate/expected/ovs0-port.nmconnection index 6516819..2f92ea4 100644 --- a/testdata/generate/expected/ovs0-port.nmconnection +++ b/testdata/generate/expected/ovs0-port.nmconnection @@ -1,6 +1,6 @@ [connection] autoconnect=true -autoconnect-slaves=-1 +autoconnect-slaves=1 id=ovs0-port interface-name=ovs0 master=br1