]> git.proxmox.com Git - pve-network.git/blob - PVE/Network/Network/VnetPlugin.pm
vnetplugin: make tag && transportzone non optional
[pve-network.git] / PVE / Network / Network / VnetPlugin.pm
1 package PVE::Network::Network::VnetPlugin;
2
3 use strict;
4 use warnings;
5 use PVE::Network::Network::Plugin;
6
7 use base('PVE::Network::Network::Plugin');
8
9 sub type {
10 return 'vnet';
11 }
12
13
14
15 sub properties {
16 return {
17 transportzone => {
18 type => 'string',
19 description => "transportzone id",
20 },
21 tag => {
22 type => 'integer',
23 description => "vlan or vxlan id",
24 },
25 name => {
26 type => 'string',
27 description => "name of the vnet",
28 optional => 1,
29 },
30 mtu => {
31 type => 'integer',
32 description => "mtu",
33 optional => 1,
34 },
35 ipv4 => {
36 description => "Anycast router ipv4 address.",
37 type => 'string', format => 'ipv4',
38 optional => 1,
39 },
40 ipv6 => {
41 description => "Anycast router ipv6 address.",
42 type => 'string', format => 'ipv6',
43 optional => 1,
44 },
45 mac => {
46 type => 'boolean',
47 description => "Anycast router mac address",
48 optional => 1,
49 }
50 };
51 }
52
53 sub options {
54 return {
55 transportzone => { optional => 0},
56 tag => { optional => 0},
57 name => { optional => 1 },
58 ipv4 => { optional => 1 },
59 ipv6 => { optional => 1 },
60 mtu => { optional => 1 },
61 };
62 }
63
64
65 1;