]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
Fri Jul 6 16:19:00 BST 2007 Richard W.M. Jones <rjones@redhat.com>
authorRichard W.M. Jones <rjones@redhat.com>
Fri, 6 Jul 2007 15:20:38 +0000 (15:20 +0000)
committerRichard W.M. Jones <rjones@redhat.com>
Fri, 6 Jul 2007 15:20:38 +0000 (15:20 +0000)
* src/libvirt.c, src/qemu_driver.c: If the virNetworkLookup*
  functions cannot find a network, then they now throw
  VIR_ERR_NO_NETWORK error.

ChangeLog
src/libvirt.c
src/qemu_driver.c

index 48e966e1e7d9efc78e943bbf51b2d90b37bdc977..a44d65caee78c502c2a7af6b881b603be7d4b4f8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Fri Jul  6 16:19:00 BST 2007 Richard W.M. Jones <rjones@redhat.com>
+
+       * src/libvirt.c, src/qemu_driver.c: If the virNetworkLookup*
+         functions cannot find a network, then they now throw
+         VIR_ERR_NO_NETWORK error.
+
 Fri Jul  6 16:08:00 BST 2007 Richard W.M. Jones <rjones@redhat.com>
 
        * src/proxy_internal.c, src/proxy_internal.h,
index 163ed82026db8882796de3b337e3f9153c1727aa..f0807785d0e4a6f8ef4442cb13136d50d07c1a45 100644 (file)
@@ -2338,7 +2338,8 @@ virConnectListDefinedNetworks(virConnectPtr conn, char **const names,
  *
  * Try to lookup a network on the given hypervisor based on its name.
  *
- * Returns a new network object or NULL in case of failure
+ * Returns a new network object or NULL in case of failure.  If the
+ * network cannot be found, then VIR_ERR_NO_NETWORK error is raised.
  */
 virNetworkPtr
 virNetworkLookupByName(virConnectPtr conn, const char *name)
@@ -2366,7 +2367,8 @@ virNetworkLookupByName(virConnectPtr conn, const char *name)
  *
  * Try to lookup a network on the given hypervisor based on its UUID.
  *
- * Returns a new network object or NULL in case of failure
+ * Returns a new network object or NULL in case of failure.  If the
+ * network cannot be found, then VIR_ERR_NO_NETWORK error is raised.
  */
 virNetworkPtr
 virNetworkLookupByUUID(virConnectPtr conn, const unsigned char *uuid)
@@ -2394,7 +2396,8 @@ virNetworkLookupByUUID(virConnectPtr conn, const unsigned char *uuid)
  *
  * Try to lookup a network on the given hypervisor based on its UUID.
  *
- * Returns a new network object or NULL in case of failure
+ * Returns a new network object or NULL in case of failure.  If the
+ * network cannot be found, then VIR_ERR_NO_NETWORK error is raised.
  */
 virNetworkPtr
 virNetworkLookupByUUIDString(virConnectPtr conn, const char *uuidstr)
index 91cf920675962a10f15f501d5a5809a2f6241f9a..0f233eaba1a4872ec6162c26ace03ce32055317c 100644 (file)
@@ -2155,7 +2155,7 @@ static virNetworkPtr qemudNetworkLookupByUUID(virConnectPtr conn ATTRIBUTE_UNUSE
     virNetworkPtr net;
 
     if (!network) {
-        qemudReportError(conn, NULL, NULL, VIR_ERR_INTERNAL_ERROR, "no network with matching uuid");
+        qemudReportError(conn, NULL, NULL, VIR_ERR_NO_NETWORK, "no network with matching uuid");
         return NULL;
     }
 
@@ -2169,7 +2169,7 @@ static virNetworkPtr qemudNetworkLookupByName(virConnectPtr conn ATTRIBUTE_UNUSE
     virNetworkPtr net;
 
     if (!network) {
-        qemudReportError(conn, NULL, NULL, VIR_ERR_INTERNAL_ERROR, "no network with matching name");
+        qemudReportError(conn, NULL, NULL, VIR_ERR_NO_NETWORK, "no network with matching name");
         return NULL;
     }