X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=src%2FPVE%2FAPI2%2FFirewall%2FRules.pm;h=9fcfb20ba9a88f963fe9b3bb1dd4929d3935aaf7;hb=HEAD;hp=1e76e99ae879a32be3f9d07655d538cc7471ac63;hpb=a38849e6507fd567a3c7d7ff92f7b2bc93841126;p=pve-firewall.git diff --git a/src/PVE/API2/Firewall/Rules.pm b/src/PVE/API2/Firewall/Rules.pm index 1e76e99..9fcfb20 100644 --- a/src/PVE/API2/Firewall/Rules.pm +++ b/src/PVE/API2/Firewall/Rules.pm @@ -2,6 +2,7 @@ package PVE::API2::Firewall::RulesBase; use strict; use warnings; + use PVE::JSONSchema qw(get_standard_option); use PVE::Exception qw(raise raise_param_exc); @@ -150,6 +151,10 @@ sub register_get_rule { log => PVE::Firewall::get_standard_option('pve-fw-loglevel', { description => 'Log level for firewall rule', }), + 'icmp-type' => { + type => 'string', + optional => 1, + }, iface => { type => 'string', optional => 1, @@ -517,7 +522,7 @@ sub rule_env { sub lock_config { my ($class, $param, $code) = @_; - PVE::Firewall::lock_hostfw_conf(10, $code, $param); + PVE::Firewall::lock_hostfw_conf(undef, 10, $code, $param); } sub load_config {