Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
10 changes: 5 additions & 5 deletions rust/agama-network/src/model.rs
Original file line number Diff line number Diff line change
Expand Up @@ -803,22 +803,22 @@ impl From<InvalidMacAddress> for zbus::fdo::Error {
pub struct IpConfig {
pub method4: Ipv4Method,
pub method6: Ipv6Method,
#[serde(skip_serializing_if = "Vec::is_empty")]
#[serde(default, skip_serializing_if = "Vec::is_empty")]
#[schema(schema_with = schemas::ip_inet_array)]
pub addresses: Vec<IpInet>,
#[serde(skip_serializing_if = "Vec::is_empty")]
#[serde(default, skip_serializing_if = "Vec::is_empty")]
#[schema(schema_with = schemas::ip_addr_array)]
pub nameservers: Vec<IpAddr>,
#[serde(skip_serializing_if = "Vec::is_empty")]
#[serde(default, skip_serializing_if = "Vec::is_empty")]
pub dns_searchlist: Vec<String>,
pub ignore_auto_dns: bool,
#[schema(schema_with = schemas::ip_addr)]
pub gateway4: Option<IpAddr>,
#[schema(schema_with = schemas::ip_addr)]
pub gateway6: Option<IpAddr>,
#[serde(skip_serializing_if = "Vec::is_empty")]
#[serde(default, skip_serializing_if = "Vec::is_empty")]
pub routes4: Vec<IpRoute>,
#[serde(skip_serializing_if = "Vec::is_empty")]
#[serde(default, skip_serializing_if = "Vec::is_empty")]
pub routes6: Vec<IpRoute>,
pub dhcp4_settings: Option<Dhcp4Settings>,
pub dhcp6_settings: Option<Dhcp6Settings>,
Expand Down
7 changes: 7 additions & 0 deletions rust/package/agama.changes
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Mon May 19 14:02:04 UTC 2025 - Imobach Gonzalez Sosa <igonzalezsosa@suse.com>

- Do not crash when network events do not contain "addresses",
"nameservers", "dnsSearchlist", "routes4" or "routes6"
(gh#agama-project/agama#2371).

-------------------------------------------------------------------
Mon May 19 12:02:46 UTC 2025 - Imobach Gonzalez Sosa <igonzalezsosa@suse.com>

Expand Down