]> git.proxmox.com Git - pve-network.git/blobdiff - PVE/Network/Plugin.pm
add network transport api
[pve-network.git] / PVE / Network / Plugin.pm
index b186d8f3a33f65f9549593b9da5992276f706ca2..36cd2eda8874c1113df0e1c7c558520fd43348aa 100644 (file)
@@ -8,7 +8,7 @@ use PVE::JSONSchema;
 use PVE::Cluster;
 
 use Data::Dumper;
-
+use PVE::JSONSchema qw(get_standard_option);
 use base qw(PVE::SectionConfig);
 
 PVE::Cluster::cfs_register_file('network/transports.cfg',
@@ -23,11 +23,8 @@ my $defaultData = {
            type => 'string', format => 'pve-configid',
            type => 'string',
        },
-       'uplink-id' => {
-           type => 'integer',
-           minimum => 1, maximum => 4096,
-           description => 'Uplink interface',
-       },
+        transport => get_standard_option('pve-transport-id',
+            { completion => \&PVE::Network::Transport::complete_transport }),
     },
 };