* [PATCH pve-network 1/1] api2: evpn status: properly handle nodes field of evpn zones
@ 2026-05-28 13:39 Stefan Hanreich
2026-06-11 16:00 ` Gabriel Goller
0 siblings, 1 reply; 2+ messages in thread
From: Stefan Hanreich @ 2026-05-28 13:39 UTC (permalink / raw)
To: pve-devel
When querying the status of EVPN IP/MAC-VRFs, the nodes field of the
zone configuration is read. The nodes are returned as a dictionary,
but the API endpoints are treating the field as an array. This leads
to an error when trying to obtain the status of an EVPN zone with
nodes configured explicitly:
Not an ARRAY reference at /usr/share/perl5/PVE/API2/Network/SDN/Nodes/Zone.pm line 379.
or
Not an ARRAY reference at /usr/share/perl5/PVE/API2/Network/SDN/Nodes/Vnet.pm line 141.
This has been reported by a user in the forum [1].
[1] https://forum.proxmox.com/threads/sdn-evpn-ip-vrf-and-mac-vrf-panels-are-empty-but-vtysh-shows-correct-routes.183897/
Signed-off-by: Stefan Hanreich <s.hanreich@proxmox.com>
---
src/PVE/API2/Network/SDN/Nodes/Vnet.pm | 2 +-
src/PVE/API2/Network/SDN/Nodes/Zone.pm | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/PVE/API2/Network/SDN/Nodes/Vnet.pm b/src/PVE/API2/Network/SDN/Nodes/Vnet.pm
index d5dae56b..8cbf1e5e 100644
--- a/src/PVE/API2/Network/SDN/Nodes/Vnet.pm
+++ b/src/PVE/API2/Network/SDN/Nodes/Vnet.pm
@@ -138,7 +138,7 @@ __PACKAGE__->register_method({
raise_param_exc({
zone => "zone $vnet->{zone} of vnet $vnet_id does not exist on node $node_id",
})
- if defined($zone->{nodes}) && !grep { $_ eq $node_id } $zone->{nodes}->@*;
+ if defined($zone->{nodes}) && !$zone->{nodes}->{$node_id};
return PVE::RS::SDN::Fabrics::l2vpn_routes($vnet_id);
},
diff --git a/src/PVE/API2/Network/SDN/Nodes/Zone.pm b/src/PVE/API2/Network/SDN/Nodes/Zone.pm
index c1e48da7..a4e72c50 100644
--- a/src/PVE/API2/Network/SDN/Nodes/Zone.pm
+++ b/src/PVE/API2/Network/SDN/Nodes/Zone.pm
@@ -376,7 +376,7 @@ __PACKAGE__->register_method({
raise_param_exc({
zone => "zone does not exist on node $node_id",
})
- if defined($zone->{nodes}) && !grep { $_ eq $node_id } $zone->{nodes}->@*;
+ if defined($zone->{nodes}) && !$zone->{nodes}->{$node_id};
return PVE::RS::SDN::Fabrics::l3vpn_routes($zone_id);
},
--
2.47.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH pve-network 1/1] api2: evpn status: properly handle nodes field of evpn zones
2026-05-28 13:39 [PATCH pve-network 1/1] api2: evpn status: properly handle nodes field of evpn zones Stefan Hanreich
@ 2026-06-11 16:00 ` Gabriel Goller
0 siblings, 0 replies; 2+ messages in thread
From: Gabriel Goller @ 2026-06-11 16:00 UTC (permalink / raw)
To: Stefan Hanreich; +Cc: pve-devel
On Thu, 28 May 2026 15:39:46 +0200, Stefan Hanreich <s.hanreich@proxmox.com> wrote:
> When querying the status of EVPN IP/MAC-VRFs, the nodes field of the
> zone configuration is read. The nodes are returned as a dictionary,
> but the API endpoints are treating the field as an array. This leads
> to an error when trying to obtain the status of an EVPN zone with
> nodes configured explicitly:
>
> Not an ARRAY reference at /usr/share/perl5/PVE/API2/Network/SDN/Nodes/Zone.pm line 379.
>
> [...]
Reviewed-by: Gabriel Goller <g.goller@proxmox.com>
Tested-by: Gabriel Goller <g.goller@proxmox.com>
--
Gabriel Goller <g.goller@proxmox.com>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-06-11 16:01 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-28 13:39 [PATCH pve-network 1/1] api2: evpn status: properly handle nodes field of evpn zones Stefan Hanreich
2026-06-11 16:00 ` Gabriel Goller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox