]> git.proxmox.com Git - pve-firewall.git/commitdiff
fwtester: set cluster network to 172.16.1.0/24, host_ip to 172.16.1.2
authorDietmar Maurer <dietmar@proxmox.com>
Tue, 20 May 2014 05:36:44 +0000 (07:36 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Tue, 20 May 2014 05:36:44 +0000 (07:36 +0200)
So that we can add test for default rules

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);