From: Thomas Parrott Date: Thu, 9 May 2019 15:47:42 +0000 (+0100) Subject: api: Adds the network_phys_macvlan_mtu extension X-Git-Tag: lxc-3.2.0~60^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bc999107589c9246ecfc831d74855244aafc6d41;p=thirdparty%2Flxc.git 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 --- 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);