search for: _map_networks

Displaying 8 results from an estimated 8 matches for "_map_networks".

2010 May 04
2
[PATCH 1/2] Config: NFC: always create and pass round a Config object
...fined($dom); carp("convert called without desc argument") unless defined($desc); carp("convert called without devices argument") unless defined($devices); @@ -156,7 +156,7 @@ sub convert unless (defined($guestcaps)); # Map network names from config - _map_networks($dom, $config) if (defined($config)); + _map_networks($dom, $config); # Convert the metadata _convert_metadata($dom, $desc, $devices, $guestcaps); diff --git a/lib/Sys/VirtV2V/GuestOS.pm b/lib/Sys/VirtV2V/GuestOS.pm index fea4ba1..e5b1704 100644 --- a/lib/Sys/VirtV2V/GuestOS.pm +++ b...
2010 May 04
1
[PATCH] Converter: Don't die if we can't do guest-specific conversion
...1000 and the host as x86_64.")); + + # Set some conservative defaults + $guestcaps = { + 'arch' => 'x86_64', + 'virtio' => 0, + 'acpi' => 1 + }; + } # Map network names from config _map_networks($dom, $config); -- 1.6.6.1
2010 Feb 09
5
[PATCH 1/6] Convert config file to XML, and translate networks/bridge for all connections
...defined($dom); carp("convert called without desc argument") unless defined($desc); @@ -149,6 +150,9 @@ sub convert die(user_message(__"Unable to find a module to convert this guest")) unless (defined($guestcaps)); + # Map network names from config + _map_networks($dom, $config); + # Convert the metadata _convert_metadata($vmm, $dom, $desc, $guestcaps); @@ -469,6 +473,81 @@ sub _unconfigure_xen_metadata # /domain/bootloader_args } +sub _map_networks +{ + my ($dom, $config) = @_; + + # Iterate over interfaces + foreach my $if ($do...
2010 Feb 19
2
[PATCH 1/2] Fix remapping of block devices
...($class->modules()) { if($module->can_handle($desc)) { - $guestcaps = $module->convert($vmm, $guestos, $dom, $desc); + $guestcaps = $module->convert($vmm, $guestos, $desc, $devices); last; } } @@ -154,7 +162,7 @@ sub convert _map_networks($dom, $config); # Convert the metadata - _convert_metadata($vmm, $dom, $desc, $guestcaps); + _convert_metadata($vmm, $dom, $desc, $devices, $guestcaps); my ($name) = $dom->findnodes('/domain/name/text()'); $name = $name->getNodeValue(); @@ -170,7 +178,7 @@ sub...
2010 Apr 08
1
[PATCH] Move all interaction with the config file into Sys::VirtV2V::Config
...license. + +=head1 SEE ALSO + +L<virt-v2v(1)>, +L<http://libguestfs.org/>. + +=cut + +1; diff --git a/lib/Sys/VirtV2V/Converter.pm b/lib/Sys/VirtV2V/Converter.pm index 5dc8550..08f1e8f 100644 --- a/lib/Sys/VirtV2V/Converter.pm +++ b/lib/Sys/VirtV2V/Converter.pm @@ -442,57 +442,19 @@ sub _map_networks exit(1); } - _update_interface($if, $name, $type, $config); - } -} + my ($newname, $newtype) = $config->map_network($name->getValue(), + $type); -sub _update_interface -{ - my ($if, $oldname, $...
2011 Mar 11
2
[PATCH 1/2] Allow reading more data than the reported size of a volume
If a volume is not an exact multiple of 512 bytes, qemu-img will report its size rounded down to a 512 byte boundary. However, when copying, the file is still read until EOF, which will return more data than was expected. This change prevents that causing a failure in itself. The situation is still not resolved, however, as there are still situations where this will cause a failure. For example,
2010 Feb 12
11
[PATCH 1/9] Convert config file to XML, and translate networks/bridge for all connections
...defined($dom); carp("convert called without desc argument") unless defined($desc); @@ -149,6 +150,9 @@ sub convert die(user_message(__"Unable to find a module to convert this guest")) unless (defined($guestcaps)); + # Map network names from config + _map_networks($dom, $config); + # Convert the metadata _convert_metadata($vmm, $dom, $desc, $guestcaps); @@ -469,6 +473,81 @@ sub _unconfigure_xen_metadata # /domain/bootloader_args } +sub _map_networks +{ + my ($dom, $config) = @_; + + # Iterate over interfaces + foreach my $if ($do...
2010 Mar 30
3
[PATCH 1/2] Refactor guest and volume creation into Sys::VirtV2V::Target::LibVirt
...g, $dom, $desc, $devices) = @_; carp("convert called without guestos argument") unless defined($guestos); # config will be undefined if no config was specified carp("convert called without dom argument") unless defined($dom); @@ -162,23 +157,14 @@ sub convert _map_networks($dom, $config) if (defined($config)); # Convert the metadata - _convert_metadata($vmm, $dom, $desc, $devices, $guestcaps); - - my ($name) = $dom->findnodes('/domain/name/text()'); - $name = $name->getNodeValue(); + _convert_metadata($dom, $desc, $devices, $guestcaps...