From c05492d68d4e89f37b8f2082eaae0d884a3221f6 Mon Sep 17 00:00:00 2001 From: Alen Grizonic Date: Thu, 25 Jun 2015 11:36:42 +0200 Subject: [PATCH] firewall instant API call apply --- src/PVE/API2/Firewall/Cluster.pm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/PVE/API2/Firewall/Cluster.pm b/src/PVE/API2/Firewall/Cluster.pm index b924f4e..c4e2b63 100644 --- a/src/PVE/API2/Firewall/Cluster.pm +++ b/src/PVE/API2/Firewall/Cluster.pm @@ -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; }}); -- 2.39.2