This is a breaking API change intended for PVE 9.

Signed-off-by: Fiona Ebner <f.eb...@proxmox.com>
---

Together with [0] this makes sorting numerically by guest ID work in
the SDN IPAM UI.

[0] 
https://lore.proxmox.com/pve-devel/2014f691-aa28-4ab4-91c1-48c1f68d8...@proxmox.com/T/

 src/PVE/API2/Network/SDN/Ipams.pm | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/PVE/API2/Network/SDN/Ipams.pm 
b/src/PVE/API2/Network/SDN/Ipams.pm
index 89e05ee..9955817 100644
--- a/src/PVE/API2/Network/SDN/Ipams.pm
+++ b/src/PVE/API2/Network/SDN/Ipams.pm
@@ -364,6 +364,8 @@ __PACKAGE__->register_method({
                     $entry->{ip} = $ip;
                     $entry->{vnet} = $vnet;
 
+                    $entry->{vmid} = int($entry->{vmid}) if 
defined($entry->{vmid});
+
                     push @$result, $entry;
                 }
             }
-- 
2.47.2



_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to