X-Git-Url: https://git.proxmox.com/?p=pve-docs.git;a=blobdiff_plain;f=gen-pct-network-opts.pl;h=054e5fca62be4fee659028a3f157b2cade0ef4cd;hp=5f3f5cc5d1754a25b9d81a4ab93205bfb9227987;hb=470d43137c9ca6601bebe603486d45da39fed921;hpb=bac8c3856f615ec0753fc64246c1dbda6c6a456a diff --git a/gen-pct-network-opts.pl b/gen-pct-network-opts.pl index 5f3f5cc..054e5fc 100755 --- a/gen-pct-network-opts.pl +++ b/gen-pct-network-opts.pl @@ -3,6 +3,7 @@ use lib '.'; use strict; use warnings; +use PVE::JSONSchema; use PVE::RESTHandler; use PVE::LXC::Config; @@ -12,8 +13,9 @@ my $phash = $prop->{net0}; my $format = $phash->{format}; -my $typetext = PVE::PodParser::schema_get_type_text($phash); +my $typetext = PVE::JSONSchema::schema_get_type_text($phash); -print "`net[n]`: `$typetext`\n\n"; +print "`net[n]`: `$typetext` ::\n\n"; +print $phash->{description} . "\n\n"; -print PVE::RESTHandler::dump_properties($format); +print PVE::RESTHandler::dump_properties($format, 'asciidoc', 'config-sub');