[lxc-devel] [lxd/master] api: Adds network_types API extension

tomponline on Github lxc-bot at linuxcontainers.org
Wed Jul 22 15:49:09 UTC 2020


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 361 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20200722/8758b18b/attachment.bin>
-------------- next part --------------
From d137c71998632fa6fd5f4613a1948cfbfca29109 Mon Sep 17 00:00:00 2001
From: Thomas Parrott <thomas.parrott at canonical.com>
Date: Wed, 22 Jul 2020 16:47:01 +0100
Subject: [PATCH] api: Adds network_types API extension

Signed-off-by: Thomas Parrott <thomas.parrott at canonical.com>
---
 doc/api-extensions.md | 9 +++++++++
 shared/version/api.go | 1 +
 2 files changed, 10 insertions(+)

diff --git a/doc/api-extensions.md b/doc/api-extensions.md
index f3c8e2d936..8e79a6722a 100644
--- a/doc/api-extensions.md
+++ b/doc/api-extensions.md
@@ -1123,3 +1123,12 @@ attached to a SPICE unix socket of the target virtual machine.
 Add `limits.disk` to the available project configuration keys. If set, it limits
 the total amount of disk space that instances volumes, custom volumes and images
 volumes can use in the project.
+
+## network\_types
+Adds support for additional network types (`macvlan` and `sriov`) using the existing network `Type` field.
+
+Also adds `parent` configuration key for these new network types to specify which parent interface should be used
+for creating NIC device interfaces on top of.
+
+Also adds `network` configuration key support for `macvlan` and `sriov` NIC types to allow them to specify the
+associated network of the same type that they should use as the basis for the NIC device.
diff --git a/shared/version/api.go b/shared/version/api.go
index 43931942bc..2bd2fa1bfa 100644
--- a/shared/version/api.go
+++ b/shared/version/api.go
@@ -220,6 +220,7 @@ var APIExtensions = []string{
 	"resources_gpu_mdev",
 	"console_vga_type",
 	"projects_limits_disk",
+	"network_types",
 }
 
 // APIExtensionsCount returns the number of available API extensions.


More information about the lxc-devel mailing list