Skip to content

Commit

Permalink
Debug virt nat network issue
Browse files Browse the repository at this point in the history
  • Loading branch information
guoxuguang authored and alice-suse committed Jan 21, 2025
1 parent fa7d2cd commit 0e3af71
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
4 changes: 4 additions & 0 deletions tests/virt_autotest/libvirt_isolated_virtual_network.pm
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,15 @@ sub run_test {
my $vnet_isolated_cfg_name = "vnet_isolated.xml";
virt_autotest::virtual_network_utils::download_network_cfg($vnet_isolated_cfg_name);

#Stop named.service, refer to poo#175287
systemctl("stop named.service") if (is_sle('15+'));
#Create ISOLATED NETWORK
assert_script_run("virsh net-create vnet_isolated.xml");
save_screenshot;
upload_logs "vnet_isolated.xml";
assert_script_run("rm -rf vnet_isolated.xml");
#Resume named.service, refer to poo#175287
systemctl("start named.service") if (is_sle('15+'));

my ($mac, $model, $affecter, $exclusive, $skip_type);
my $gate = '192.168.127.1'; # This host exists but should not work as a gate in the ISOLATED NETWORK
Expand Down
4 changes: 4 additions & 0 deletions tests/virt_autotest/libvirt_nated_virtual_network.pm
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,15 @@ sub run_test {

die "The default(NAT BASED NETWORK) virtual network does not exist" if (script_run('virsh net-list --all | grep default') != 0 && !is_alp);

#Stop named.service, refer to poo#175287
systemctl("stop named.service") if (is_sle('15+'));
#Create NAT BASED NETWORK
assert_script_run("virsh net-create vnet_nated.xml");
save_screenshot;
upload_logs "vnet_nated.xml";
assert_script_run("rm -rf vnet_nated.xml");
#Resume named.service, refer to poo#175287
systemctl("start named.service") if (is_sle('15+'));

my ($mac, $model, $affecter, $exclusive, $skip_type);
my $gate = '192.168.128.1';
Expand Down
7 changes: 6 additions & 1 deletion tests/virt_autotest/libvirt_routed_virtual_network.pm
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,17 @@ sub run_test {
my $vnet_routed_clone_cfg_name = "vnet_routed_clone.xml";
virt_autotest::virtual_network_utils::download_network_cfg($vnet_routed_clone_cfg_name);

#Stop named.service ,refer to poo#175287
systemctl("stop named.service") if (is_sle('15+'));
#Create ROUTED NETWORK
assert_script_run("virsh net-create vnet_routed.xml");
upload_logs "vnet_routed.xml";
assert_script_run("virsh net-create vnet_routed_clone.xml");
save_screenshot;
upload_logs "vnet_routed.xml";
upload_logs "vnet_routed_clone.xml";
assert_script_run("rm -rf vnet_routed.xml vnet_routed_clone.xml");
#Resume named.service ,refer to poo#175287
systemctl("start named.service") if (is_sle('15+'));

my ($mac1, $mac2, $model1, $model2, $affecter, $exclusive);
my $target1 = '192.168.130.1';
Expand Down

0 comments on commit 0e3af71

Please sign in to comment.