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