5
0
mirror of git://git.proxmox.com/git/pve-firewall.git synced 2025-01-07 21:17:59 +03:00

helpers: re-introduce original call site for backward compat

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2022-11-16 17:02:54 +01:00
parent 5bdc31fb91
commit 429b536178

View File

@ -24,6 +24,8 @@ use PVE::SafeSyslog;
use PVE::Tools qw($IPV4RE $IPV6RE);
use PVE::Tools qw(run_command lock_file dir_glob_foreach);
use PVE::Firewall::Helpers;
my $pvefw_conf_dir = "/etc/pve/firewall";
my $clusterfw_conf_filename = "$pvefw_conf_dir/cluster.fw";
@ -3352,6 +3354,16 @@ sub save_vmfw_conf {
}
}
# FIXME: remove with 8.0 and break older qemu-server/pve-container
sub remove_vmfw_conf {
return PVE::Firewall::Helpers::remove_vmfw_conf(@_);
}
# FIXME: remove with 8.0 and break older qemu-server/pve-container
sub clone_vmfw_conf {
return PVE::Firewall::Helpers::clone_vmfw_conf(@_);
}
sub read_vm_firewall_configs {
my ($cluster_conf, $vmdata, $dir) = @_;