[libvirt] [PATCH] don't raise a missing network as an internal error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



  https://bugzilla.redhat.com/show_bug.cgi?id=509189

When defining a domain referencing a missing network the erro should
not be raised as an internal error. Patch by Paolo Bonzini looks fine to
me,

Daniel

-- 
Daniel Veillard      | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
daniel@xxxxxxxxxxxx  | Rpmfind RPM search engine http://rpmfind.net/
http://veillard.com/ | virtualization library  http://libvirt.org/
diff --git a/src/qemu_conf.c b/src/qemu_conf.c
index 9ca60b9..11eacb3 100644
--- a/src/qemu_conf.c
+++ b/src/qemu_conf.c
@@ -716,8 +716,8 @@ qemudNetworkIfaceConnect(virConnectPtr conn,
         virNetworkPtr network = virNetworkLookupByName(conn,
                                                       net->data.network.name);
         if (!network) {
-            qemudReportError(conn, NULL, NULL, VIR_ERR_INTERNAL_ERROR,
-                             _("Network '%s' not found"),
+            qemudReportError(conn, NULL, NULL, VIR_ERR_NO_NETWORK,
+                             _("Network '%s' not defined"),
                              net->data.network.name);
             goto error;
         }
--
Libvir-list mailing list
Libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]