diff options
| author | Alexandre Derumier <aderumier@odiso.com> | 2024-02-13 09:48:58 +0100 |
|---|---|---|
| committer | Thomas Lamprecht <t.lamprecht@proxmox.com> | 2024-02-20 15:06:09 +0100 |
| commit | b18b34aad560e77ae9ea407e2154780817ba6a54 (patch) | |
| tree | 6d4b6609236237cc5f937d1dfb6ca7240f6e566f /src | |
| parent | 7343076a62146d33dbdb0896d279ce473c4c1e11 (diff) | |
ipam: netbox : fix ip_is_gateway
Originally-by: Jasper Yu <007seadog@gmail.com>
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Diffstat (limited to 'src')
| -rw-r--r-- | src/PVE/Network/SDN/Ipams/NetboxPlugin.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/PVE/Network/SDN/Ipams/NetboxPlugin.pm b/src/PVE/Network/SDN/Ipams/NetboxPlugin.pm index 14a69d9..d923269 100644 --- a/src/PVE/Network/SDN/Ipams/NetboxPlugin.pm +++ b/src/PVE/Network/SDN/Ipams/NetboxPlugin.pm @@ -283,7 +283,7 @@ sub get_ip_id { sub is_ip_gateway { my ($url, $ip, $headers) = @_; - my $result = PVE::Network::SDN::api_request("GET", "$url/addresses/search/$ip", $headers); + my $result = PVE::Network::SDN::api_request("GET", "$url/ipam/ip-addresses/?q=$ip", $headers); my $data = @{$result->{data}}[0]; my $description = $data->{description}; my $is_gateway = 1 if $description eq 'gateway'; |
