[pdm-devel] [PATCH proxmox-datacenter-manager 1/1] ui: zone status: fix primary key generation for ip-vrf table

Stefan Hanreich s.hanreich at proxmox.com
Wed Dec 3 11:25:39 CET 2025


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 at 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




More information about the pdm-devel mailing list