]> git.proxmox.com Git - pmg-api.git/commitdiff
API2: Network: add vlan-raw-device && vlan-id options
authorAlexandre Derumier <aderumier@odiso.com>
Tue, 28 Jan 2020 10:24:32 +0000 (11:24 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 28 Jan 2020 20:20:24 +0000 (21:20 +0100)
Same than pve-manager

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
src/PMG/API2/Network.pm

index ed6651d7a69a2762a8223c3a72eabcd0bf414ccc..4bf81c2f5bebc7a21f68f85bd8830a3046889ed5 100644 (file)
@@ -112,6 +112,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',