* [pdm-devel] [PATCH proxmox-datacenter-manager 1/1] ui: zone status: fix primary key generation for ip-vrf table
@ 2025-12-03 10:25 Stefan Hanreich
2025-12-03 14:04 ` Thomas Lamprecht
0 siblings, 1 reply; 2+ messages in thread
From: Stefan Hanreich @ 2025-12-03 10:25 UTC (permalink / raw)
To: pdm-devel
The same IP / CIDR can have multiple entries in the IP-VRF with
differing metrics. To avoid issues when generating primary keys for
the datatable, consider the metric for generating the primary key as
well.
Signed-off-by: Stefan Hanreich <s.hanreich@proxmox.com>
---
ui/src/sdn/evpn/zone_status.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ui/src/sdn/evpn/zone_status.rs b/ui/src/sdn/evpn/zone_status.rs
index f1687155..7f966d2e 100644
--- a/ui/src/sdn/evpn/zone_status.rs
+++ b/ui/src/sdn/evpn/zone_status.rs
@@ -56,7 +56,7 @@ impl From<SdnZoneIpVrf> for IpVrfEntry {
impl ExtractPrimaryKey for IpVrfEntry {
fn extract_key(&self) -> Key {
- Key::from(self.0.ip.as_str())
+ Key::from(format!("{}/{}", self.0.ip, self.0.metric))
}
}
--
2.47.3
_______________________________________________
pdm-devel mailing list
pdm-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pdm-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-12-03 14:04 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-12-03 10:25 [pdm-devel] [PATCH proxmox-datacenter-manager 1/1] ui: zone status: fix primary key generation for ip-vrf table Stefan Hanreich
2025-12-03 14:04 ` Thomas Lamprecht
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.