X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=src%2FPVE%2FAPI2%2FFirewall%2FCluster.pm;h=eee6d191f3ae64a135b9a853363b3d0b98475e6b;hb=e313afe046bbd3f2b3176bedd0b7163f2b314e28;hp=c4e2b63bcf8d5e1b783d7552be9fa64a044b3c39;hpb=e1158c15921bda4d7199d1aedb2a9979f48521ba;p=pve-firewall.git diff --git a/src/PVE/API2/Firewall/Cluster.pm b/src/PVE/API2/Firewall/Cluster.pm index c4e2b63..eee6d19 100644 --- a/src/PVE/API2/Firewall/Cluster.pm +++ b/src/PVE/API2/Firewall/Cluster.pm @@ -71,25 +71,7 @@ __PACKAGE__->register_method({ return $result; }}); -my $option_properties = { - enable => { - type => 'integer', - minimum => 0, - optional => 1, - }, - policy_in => { - description => "Input policy.", - type => 'string', - optional => 1, - enum => ['ACCEPT', 'REJECT', 'DROP'], - }, - policy_out => { - description => "Output policy.", - type => 'string', - optional => 1, - enum => ['ACCEPT', 'REJECT', 'DROP'], - }, -}; +my $option_properties = $PVE::Firewall::cluster_option_properties; my $add_option_properties = sub { my ($properties) = @_;