[pve-devel] [PATCH] firewall remove config file subroutine added
Alen Grizonic
a.grizonic at proxmox.com
Wed Aug 19 10:34:12 CEST 2015
Signed-off-by: Alen Grizonic <a.grizonic at proxmox.com>
---
src/PVE/Firewall.pm | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/src/PVE/Firewall.pm b/src/PVE/Firewall.pm
index de66352..5962a4f 100644
--- a/src/PVE/Firewall.pm
+++ b/src/PVE/Firewall.pm
@@ -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) = @_;
--
2.1.4
More information about the pve-devel
mailing list