]> git.proxmox.com Git - pve-firewall.git/commitdiff
firewall instant API call apply
authorAlen Grizonic <a.grizonic@proxmox.com>
Thu, 25 Jun 2015 09:36:42 +0000 (11:36 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Fri, 26 Jun 2015 08:57:09 +0000 (10:57 +0200)
src/PVE/API2/Firewall/Cluster.pm

index b924f4edc22de2250b3db3c7a4e3aa215ce83f04..c4e2b63bcf8d5e1b783d7552be9fa64a044b3c39 100644 (file)
@@ -175,6 +175,12 @@ __PACKAGE__->register_method({
 
        PVE::Firewall::save_clusterfw_conf($cluster_conf);
 
+       # instant firewall update when using double (anti-lockout) API call
+       # -> not waiting for a firewall update at the first (timestamp enable) set
+       if (defined($param->{enable}) && ($param->{enable} > 1)) {
+           PVE::Firewall::update();
+       }
+
        return undef;
     }});