use PVE::JSONSchema qw(get_standard_option);
use PVE::Firewall;
+use PVE::API2::Firewall::Rules;
use PVE::API2::Firewall::Groups;
#fixme: locking?
path => 'groups',
});
+__PACKAGE__->register_method ({
+ subclass => "PVE::API2::Firewall::ClusterRules",
+ path => 'rules',
+});
+
__PACKAGE__->register_method({
name => 'index',
path => '',
path => 'options',
method => 'PUT',
description => "Set Firewall options.",
+ protected => 1,
parameters => {
additionalProperties => 0,
properties => &$add_option_properties({
$cluster_conf->{options}->{enable} = $param->{enable} ? 1 : 0;
}
-
PVE::Firewall::save_clusterfw_conf($cluster_conf);
return undef;