This follows the same convention as domain drivers.
+Fri May 29 10:13:55 EDT 2009 Cole Robinson <crobinso@redhat.com>
+
+ * src/network_driver.c: networkDestroy: Report error if network
+ is inactive
+
Fri May 29 10:10:00 EDT 2009 Cole Robinson <crobinso@redhat.com>
* src/qemu_driver.c: qemu_driver: Fix another domain startup error
goto cleanup;
}
+ if (!virNetworkIsActive(network)) {
+ networkReportError(net->conn, NULL, net, VIR_ERR_INTERNAL_ERROR,
+ "%s", _("network is not active"));
+ goto cleanup;
+ }
+
ret = networkShutdownNetworkDaemon(net->conn, driver, network);
if (!network->persistent) {
virNetworkRemoveInactive(&driver->networks,