From: Alexandre Derumier <aderumier@odiso.com>
To: pve-devel@lists.proxmox.com
Subject: [pve-devel] [PATCH v2 pve-network 4/6] ipam: phpipam: fix get_ip_from_mac
Date: Tue, 13 Feb 2024 09:48:56 +0100 [thread overview]
Message-ID: <20240213084858.2138416-5-aderumier@odiso.com> (raw)
In-Reply-To: <20240213084858.2138416-1-aderumier@odiso.com>
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
---
src/PVE/Network/SDN/Ipams/PhpIpamPlugin.pm | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/src/PVE/Network/SDN/Ipams/PhpIpamPlugin.pm b/src/PVE/Network/SDN/Ipams/PhpIpamPlugin.pm
index f3f22b5..bb9f322 100644
--- a/src/PVE/Network/SDN/Ipams/PhpIpamPlugin.pm
+++ b/src/PVE/Network/SDN/Ipams/PhpIpamPlugin.pm
@@ -215,8 +215,11 @@ sub get_ips_from_mac {
my $ip4 = undef;
my $ip6 = undef;
-
- my $ips = PVE::Network::SDN::api_request("GET", "$url/addresses/search_mac/$mac", $headers);
+ my $ips = undef;
+ eval {
+ $ips = PVE::Network::SDN::api_request("GET", "$url/addresses/search_mac/$mac", $headers);
+ };
+ return if $@;
#fixme
die "parsing of result not yet implemented";
--
2.39.2
next prev parent reply other threads:[~2024-02-13 8:49 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-13 8:48 [pve-devel] [PATCH v2 pve-network 0/6] external ipams fixes Alexandre Derumier
2024-02-13 8:48 ` [pve-devel] [PATCH v2 pve-network 1/6] ipams : add_next_freeip : return ip not cidr Alexandre Derumier
2024-02-13 8:48 ` [pve-devel] [PATCH v2 pve-network 2/6] sdn: add proxy support for api calls Alexandre Derumier
2024-02-13 8:48 ` [pve-devel] [PATCH v2 pve-network 3/6] ipam: phpipam: fix subnet create Alexandre Derumier
2024-02-13 8:48 ` Alexandre Derumier [this message]
2024-02-13 8:48 ` [pve-devel] [PATCH v2 pve-network 5/6] ipam: phpipam: add_range_next_freeip Alexandre Derumier
2024-02-13 8:48 ` [pve-devel] [PATCH v2 pve-network 6/6] ipam: netbox : fix ip_is_gateway Alexandre Derumier
2024-02-20 14:07 ` [pve-devel] applied: [PATCH v2 pve-network 0/6] external ipams fixes Thomas Lamprecht
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240213084858.2138416-5-aderumier@odiso.com \
--to=aderumier@odiso.com \
--cc=pve-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox