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.gol...@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



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

Reply via email to