Skip to content

Commit

Permalink
wip: void duplicated network
Browse files Browse the repository at this point in the history
  • Loading branch information
frankiejol committed Apr 12, 2024
1 parent e37abc5 commit bb60cb9
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions t/mojo/70_volatile.t
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ sub _count_nodes($vm_name) {

sub _new_network($vm_name,$id_vm) {

my ($req,$net);
my $net;

for my $cont ( 140 .. 150 ) {
my $req_new = Ravada::Request->new_network(
Expand All @@ -216,17 +216,7 @@ sub _new_network($vm_name,$id_vm) {
$net->{ip_address} =~ s/(\d+\.\d+\.)\d+(.*)/$1$cont$2/;
my $name = $net->{name};

my $user = create_user();
$req = Ravada::Request->create_network(
uid => user_admin->id
,id_vm => $id_vm
,data => $net
);
wait_request(check_error => 0);

last if !$req->error;
}
die $req->error if $req->error;

_create_network_nodes($vm_name, $net);

Expand Down

0 comments on commit bb60cb9

Please sign in to comment.