all lists on lists.proxmox.com
 help / color / mirror / Atom feed
* [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

* Re: [pdm-devel] [PATCH proxmox-datacenter-manager 1/1] ui: zone status: fix primary key generation for ip-vrf table
  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
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Lamprecht @ 2025-12-03 14:04 UTC (permalink / raw)
  To: pdm-devel, Stefan Hanreich

On Wed, 03 Dec 2025 11:25:39 +0100, Stefan Hanreich wrote:
> 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.
> 
> 

Applied, thanks!

[1/1] ui: zone status: fix primary key generation for ip-vrf table
      commit: 410d8d8dc8d59c507c0bf04e3b346a26fef900f7


_______________________________________________
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.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal