]> git.proxmox.com Git - pve-network.git/blobdiff - PVE/API2/Network/SDN/Zones/Content.pm
improve status error description
[pve-network.git] / PVE / API2 / Network / SDN / Zones / Content.pm
index 18dcb4cb4013495979326c5f99e954cc84a125e7..94536fbcf5f1e389bf10612442f16f72fea196e2 100644 (file)
@@ -49,6 +49,11 @@ __PACKAGE__->register_method ({
                    type => 'string',
                    optional => 1,
                },
+               statusmsg => {
+                   description => "Status details",
+                   type => 'string',
+                   optional => 1,
+               },
            },
        },
        links => [ { rel => 'child', href => "{vnet}" } ],
@@ -70,6 +75,7 @@ __PACKAGE__->register_method ({
            if ($vnet_status->{$id}->{zone} eq $transportid) {
                my $item->{vnet} = $id;
                $item->{status} = $vnet_status->{$id}->{'status'};
+               $item->{status} = $vnet_status->{$id}->{'statusmsg'};
                push @$res,$item;
            }
         }