5
0
mirror of git://git.proxmox.com/git/pve-docs.git synced 2025-01-26 10:03:45 +03:00
pve-docs/gen-pct-network-opts.pl
2016-05-11 10:58:30 +02:00

21 lines
387 B
Perl
Executable File

#!/usr/bin/perl
use lib '.';
use strict;
use warnings;
use PVE::JSONSchema;
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::JSONSchema::schema_get_type_text($phash);
print "`net[n]`: `$typetext`\n\n";
print PVE::RESTHandler::dump_properties($format);