]> git.proxmox.com Git - pmg-api.git/commitdiff
api2 : network : add mtu
authorAlexandre Derumier <aderumier@odiso.com>
Thu, 9 Jan 2020 13:25:15 +0000 (14:25 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Sat, 11 Jan 2020 15:20:39 +0000 (16:20 +0100)
min 1280 to handle ipv6 && ipv4
max 65520 (infinibad support it)

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

index 1c3e8c113a4c161285d7af5f758a1d25651206d5..ed6651d7a69a2762a8223c3a72eabcd0bf414ccc 100644 (file)
@@ -134,6 +134,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',