[pve-devel] [PATCH pve-manager 11/11] network: return loopback interface on network endpoint

Gabriel Goller g.goller at proxmox.com
Fri Feb 14 14:39:51 CET 2025


The endpoint '/network' returns all the interfaces but for some unknown
reason filters out the loopback address. This is not desirable for the
sdn fabrics, as we want to be able to add a loopback address to a
fabric.

Signed-off-by: Gabriel Goller <g.goller at proxmox.com>
---
 PVE/API2/Network.pm | 2 --
 1 file changed, 2 deletions(-)

diff --git a/PVE/API2/Network.pm b/PVE/API2/Network.pm
index 3c45fe2fb7bf..870164e9b639 100644
--- a/PVE/API2/Network.pm
+++ b/PVE/API2/Network.pm
@@ -356,8 +356,6 @@ __PACKAGE__->register_method({
 
 	my $ifaces = $config->{ifaces};
 
-	delete $ifaces->{lo}; # do not list the loopback device
-
 	if (my $tfilter = $param->{type}) {
 	    my $vnets;
 
-- 
2.39.5





More information about the pve-devel mailing list