[pve-devel] [PATCH pve-manager 1/1] API2: Network: add vlan-raw-device && vlan-id options.

Alexandre Derumier aderumier at odiso.com
Sat Jan 25 10:30:12 CET 2020


Signed-off-by: Alexandre Derumier <aderumier at odiso.com>
---
 PVE/API2/Network.pm | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/PVE/API2/Network.pm b/PVE/API2/Network.pm
index 49a38746..a32f6c01 100644
--- a/PVE/API2/Network.pm
+++ b/PVE/API2/Network.pm
@@ -121,6 +121,18 @@ my $confdesc = {
 	type => 'string', 
 	enum => ['layer2', 'layer2+3', 'layer3+4' ],
     },
+    'vlan-raw-device' => {
+	description => "Specify the raw interface for the vlan interface.",
+	optional => 1,
+	type => 'string', format => 'pve-iface',
+    },
+    'vlan-id' => {
+	description => "vlan-id for a custom named vlan interface (ifupdown2 only).",
+	optional => 1,
+	type => 'integer',
+	minimum => 1,
+	maximum => 4094,
+    },
     gateway => {
 	description => 'Default gateway address.',
 	type => 'string', format => 'ipv4',
-- 
2.20.1




More information about the pve-devel mailing list