]> git.proxmox.com Git - pve-firewall.git/blobdiff - src/PVE/Firewall.pm
add init function
[pve-firewall.git] / src / PVE / Firewall.pm
index 73005ab7bced11f6d5bb37b4de3066e7fecc87ed..667c876ce87275715ef7f77898197b7cb539cdb5 100644 (file)
@@ -2928,6 +2928,16 @@ sub remove_pvefw_chains {
     iptables_restore_cmdlist($cmdlist);
 }
 
+sub init {
+    my $cluster_conf = load_clusterfw_conf();
+    my $cluster_options = $cluster_conf->{options};
+    my $enable = $cluster_options->{enable};
+
+    return if !$enable;
+
+    # load required modules here
+}
+
 sub update {
     my ($verbose) = @_;
 
@@ -2956,5 +2966,4 @@ sub update {
     run_locked($code);
 }
 
-
 1;