install gen-vzdump.conf.5-opts.pl
[pve-docs.git] / gen-pve-firewall-rules-opts.pl
CommitLineData
696fb448
DM
1#!/usr/bin/perl
2
9344ee0d 3use lib '.';
696fb448
DM
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);