]> git.proxmox.com Git - pve-firewall.git/commitdiff
firewall remove config file subroutine added
authorAlen Grizonic <a.grizonic@proxmox.com>
Wed, 19 Aug 2015 08:34:12 +0000 (10:34 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Wed, 19 Aug 2015 13:32:29 +0000 (15:32 +0200)
Signed-off-by: Alen Grizonic <a.grizonic@proxmox.com>
src/PVE/Firewall.pm

index de66352c35ed281941b0a7e8fbe41df5e489bbb4..5962a4f6919a379f0d28cbbc7664bdf763018343 100644 (file)
@@ -2819,6 +2819,14 @@ sub save_vmfw_conf {
     PVE::Tools::file_set_contents($filename, $raw);
 }
 
+sub remove_vmfw_conf {
+    my ($vmid) = @_;
+
+    my $vmfw_conffile = "$pvefw_conf_dir/$vmid.fw";
+
+    unlink $vmfw_conffile;
+}
+
 sub read_vm_firewall_configs {
     my ($cluster_conf, $vmdata, $dir, $verbose) = @_;