From: Dietmar Maurer Date: Tue, 20 May 2014 05:36:44 +0000 (+0200) Subject: fwtester: set cluster network to 172.16.1.0/24, host_ip to 172.16.1.2 X-Git-Url: https://git.proxmox.com/?p=pve-firewall.git;a=commitdiff_plain;h=ee06b0094439443a288f9b6f37473b69c1451c9c;ds=sidebyside fwtester: set cluster network to 172.16.1.0/24, host_ip to 172.16.1.2 So that we can add test for default rules --- diff --git a/test/fwtester.pl b/test/fwtester.pl index 8faee3f..17b883d 100755 --- a/test/fwtester.pl +++ b/test/fwtester.pl @@ -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);