CC: | berrange [...] redhat.com |
Subject: | $vmm->create_network($xml) is busted |
I think this is a copy/paste error:
$ diff lib/Sys/Virt/Network.pm~ lib/Sys/Virt/Network.pm
--- lib/Sys/Virt/Network.pm~ 2008-02-23 14:15:14.000000000 -0500
+++ lib/Sys/Virt/Network.pm 2008-03-07 18:00:40.000000000 -0500
@@ -62,7 +62,7 @@ sub _new {
if ($params{nocreate}) {
$self = Sys::Virt::Network::_define_xml($con, $params{xml});
} else {
- $self = Sys::Virt::Network::_create_linux($con, $params{xml});
+ $self = Sys::Virt::Network::_create_xml($con, $params{xml});
}
} else {
die "address, id or uuid parameters are required";
It is not possible to use create_network() without this patch.