]> git.proxmox.com Git - pve-manager.git/commitdiff
api2 : network : add mtu
authorAlexandre Derumier <aderumier@odiso.com>
Wed, 8 Jan 2020 03:31:20 +0000 (04:31 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Sat, 11 Jan 2020 16:22:46 +0000 (17:22 +0100)
min 1280 to handle ipv6 && ipv4
max 65520 (infinibad support it)

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

index a754c0bf4db222f74bae8877b61eb0006c5ad317..20e377813fd25e483b6d10774e0112a1c9cefc39 100644 (file)
@@ -143,6 +143,13 @@ my $confdesc = {
        type => 'string', format => 'CIDRv4',
        optional => 1,
     },
+    mtu => {
+       description => 'MTU.',
+       optional => 1,
+       type => 'integer',
+       minimum => 1280,
+       maximum => 65520,
+    },
     gateway6 => {
        description => 'Default ipv6 gateway address.',
        type => 'string', format => 'ipv6',