[pve-devel] [PATCH pve-manager 3/3] api2 : network : add mtu
Alexandre Derumier
aderumier at odiso.com
Wed Jan 8 04:31:20 CET 2020
min 1280 to handle ipv6 && ipv4
max 65520 (infinibad support it)
Signed-off-by: Alexandre Derumier <aderumier at odiso.com>
---
PVE/API2/Network.pm | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/PVE/API2/Network.pm b/PVE/API2/Network.pm
index a754c0bf..20e37781 100644
--- a/PVE/API2/Network.pm
+++ b/PVE/API2/Network.pm
@@ -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',
--
2.20.1
More information about the pve-devel
mailing list