]> git.proxmox.com Git - pve-manager.git/commitdiff
API2: Network: add vlan-raw-device && vlan-id options.
authorAlexandre Derumier <aderumier@odiso.com>
Sat, 25 Jan 2020 09:30:12 +0000 (10:30 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Sat, 25 Jan 2020 15:02:06 +0000 (16:02 +0100)
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
PVE/API2/Network.pm

index 49a38746aa725bed2ced0b7cc5e426d66c31c907..a32f6c0138a63dae93ba17116819c0214afb9997 100644 (file)
@@ -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',