]> git.proxmox.com Git - pve-docs.git/blame_incremental - gen-pve-firewall-rules-opts.pl
sentence structure, wording
[pve-docs.git] / gen-pve-firewall-rules-opts.pl
... / ...
CommitLineData
1#!/usr/bin/perl
2
3use lib '.';
4use strict;
5use warnings;
6
7use PVE::RESTHandler;
8use PVE::Firewall;
9
10my $prop = {};
11PVE::Firewall::add_rule_properties($prop);
12
13my $skip = {
14 action => 1,
15 enable => 1,
16 type => 1,
17 digest => 1,
18 macro => 1,
19 pos => 1,
20 comment => 1,
21};
22
23my $filterFn = sub {
24 my ($k, $phash) = @_;
25
26 return $skip->{$k} || 0;
27};
28
29print PVE::RESTHandler::dump_properties($prop, 'asciidoc', 'arg', $filterFn);