]> git.proxmox.com Git - pve-docs.git/blobdiff - gen-pct-network-opts.pl
pct: add auto-generated network options
[pve-docs.git] / gen-pct-network-opts.pl
diff --git a/gen-pct-network-opts.pl b/gen-pct-network-opts.pl
new file mode 100755 (executable)
index 0000000..5f3f5cc
--- /dev/null
@@ -0,0 +1,19 @@
+#!/usr/bin/perl
+
+use lib '.';
+use strict;
+use warnings;
+use PVE::RESTHandler;
+use PVE::LXC::Config;
+
+my $prop = PVE::LXC::Config->json_config_properties();
+
+my $phash = $prop->{net0};
+
+my $format = $phash->{format};
+
+my $typetext =  PVE::PodParser::schema_get_type_text($phash);
+
+print "`net[n]`: `$typetext`\n\n";
+
+print PVE::RESTHandler::dump_properties($format);