]> git.proxmox.com Git - pve-firewall.git/blobdiff - test/fwtester.pl
fwtester: set cluster network to 172.16.1.0/24, host_ip to 172.16.1.2
[pve-firewall.git] / test / fwtester.pl
index 8faee3f977ce1ed83e99095a92d6e127cbb9a9a0..17b883d51a4fec531139abfe3e04e1820deb4914 100755 (executable)
@@ -500,7 +500,7 @@ sub simulate_firewall {
 
     my $start_state;
 
-    my $host_ip = '10.11.12.13';
+    my $host_ip = '172.16.1.2';
 
     if ($from eq 'host') {
        $from_info->{type} = 'host';
@@ -595,6 +595,8 @@ sub run_tests {
 
     $vmdata->{testdir} = $testdir;
 
+    PVE::Firewall::cluster_network('172.16.1.0/24');
+
     my ($ruleset, $ipset_ruleset) = 
        PVE::Firewall::compile(undef, undef, $vmdata);