From bc999107589c9246ecfc831d74855244aafc6d41 Mon Sep 17 00:00:00 2001 From: Thomas Parrott Date: Thu, 9 May 2019 16:47:42 +0100 Subject: [PATCH] api: Adds the network_phys_macvlan_mtu extension This will allow LXD to check for custom MTU support for phys and macvlan devices. Signed-off-by: Thomas Parrott --- doc/api-extensions.md | 5 +++++ src/lxc/api_extensions.h | 1 + 2 files changed, 6 insertions(+) diff --git a/doc/api-extensions.md b/doc/api-extensions.md index a013935f7..03ece1e0c 100644 --- a/doc/api-extensions.md +++ b/doc/api-extensions.md @@ -91,3 +91,8 @@ This introduces the ability to specify `lxc.net.[i].ipv4.gateway` and/or `lxc.net.[i].ipv6.gateway` with a value of `dev` which will cause the default gateway inside the container to be created as a device route without destination gateway IP needed. This is primarily intended for use with layer 3 networking devices, such as IPVLAN. + +## network\_phys\_macvlan\_mtu + +This introduces the ability to specify a custom MTU for `phys` and `macvlan` devices using the +`lxc.net.[i].mtu` property. diff --git a/src/lxc/api_extensions.h b/src/lxc/api_extensions.h index 44293db97..3df9de9ba 100644 --- a/src/lxc/api_extensions.h +++ b/src/lxc/api_extensions.h @@ -48,6 +48,7 @@ static char *api_extensions[] = { "network_ipvlan", "network_l2proxy", "network_gateway_device_route", + "network_phys_macvlan_mtu", }; static size_t nr_api_extensions = sizeof(api_extensions) / sizeof(*api_extensions); -- 2.47.2