]> git.proxmox.com Git - pve-docs.git/blobdiff - gen-pct-network-opts.pl
buildsys: don't use rm -r on so many globs
[pve-docs.git] / gen-pct-network-opts.pl
index 5f3f5cc5d1754a25b9d81a4ab93205bfb9227987..054e5fca62be4fee659028a3f157b2cade0ef4cd 100755 (executable)
@@ -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');