]> git.proxmox.com Git - pve-network.git/blame - PVE/Network/Network/VnetPlugin.pm
vnetplugin: make tag && transportzone non optional
[pve-network.git] / PVE / Network / Network / VnetPlugin.pm
CommitLineData
6bad73d0 1package PVE::Network::Network::VnetPlugin;
e7939454
AD
2
3use strict;
4use warnings;
6bad73d0 5use PVE::Network::Network::Plugin;
e7939454 6
6bad73d0 7use base('PVE::Network::Network::Plugin');
e7939454 8
6bad73d0
AD
9sub type {
10 return 'vnet';
11}
e7939454 12
e7939454
AD
13
14
6bad73d0 15sub properties {
e7939454 16 return {
e7939454
AD
17 transportzone => {
18 type => 'string',
19 description => "transportzone id",
e7939454
AD
20 },
21 tag => {
22 type => 'integer',
23 description => "vlan or vxlan id",
e7939454
AD
24 },
25 name => {
26 type => 'string',
205e9166 27 description => "name of the vnet",
e7939454
AD
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 }
6bad73d0 50 };
e7939454
AD
51}
52
6bad73d0
AD
53sub options {
54 return {
205e9166
AD
55 transportzone => { optional => 0},
56 tag => { optional => 0},
6bad73d0
AD
57 name => { optional => 1 },
58 ipv4 => { optional => 1 },
59 ipv6 => { optional => 1 },
6bad73d0
AD
60 mtu => { optional => 1 },
61 };
e7939454
AD
62}
63
e7939454
AD
64
651;