]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
api: Adds the network_phys_macvlan_mtu extension 2985/head
authorThomas Parrott <thomas.parrott@canonical.com>
Thu, 9 May 2019 15:47:42 +0000 (16:47 +0100)
committerThomas Parrott <thomas.parrott@canonical.com>
Thu, 9 May 2019 15:55:51 +0000 (16:55 +0100)
This will allow LXD to check for custom MTU support for phys and macvlan devices.

Signed-off-by: Thomas Parrott <thomas.parrott@canonical.com>
doc/api-extensions.md
src/lxc/api_extensions.h

index a013935f72f4b04c7e69c440dfa64c126d535eb0..03ece1e0ca71ab07a98dc7a59bacd35d65fc962c 100644 (file)
@@ -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.
index 44293db970ea0fec036e7b304d2f305d16a4c766..3df9de9ba3fd8efbcf3ac8bc569e03ee94fb00cd 100644 (file)
@@ -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);