[pve-devel] [PATCH pmg-api 2/2] api2 : network : add mtu

Alexandre Derumier aderumier at odiso.com
Thu Jan 9 14:25:15 CET 2020


min 1280 to handle ipv6 && ipv4
max 65520 (infinibad support it)

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

diff --git a/src/PMG/API2/Network.pm b/src/PMG/API2/Network.pm
index 1c3e8c1..ed6651d 100644
--- a/src/PMG/API2/Network.pm
+++ b/src/PMG/API2/Network.pm
@@ -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',
-- 
2.20.1




More information about the pve-devel mailing list