The following pull request was submitted through Github. It can be accessed and reviewed at: https://github.com/lxc/lxd/pull/6919
This e-mail was sent by the LXC bot, direct replies will not reach the author unless they happen to be subscribed to this list. === Description (from pull-request) === Signed-off-by: Stéphane Graber <stgra...@ubuntu.com>
From 0c5873b6b47ee1e2706b790648597c3e1cb2dfbc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Graber?= <stgra...@ubuntu.com> Date: Fri, 21 Feb 2020 19:51:29 -0500 Subject: [PATCH] lxd/init: Use new network syntax MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Stéphane Graber <stgra...@ubuntu.com> --- lxd/main_init_auto.go | 6 ++---- lxd/main_init_interactive.go | 6 ++---- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/lxd/main_init_auto.go b/lxd/main_init_auto.go index 4022c91f30..5f38ed7116 100644 --- a/lxd/main_init_auto.go +++ b/lxd/main_init_auto.go @@ -163,8 +163,7 @@ func (c *cmdInit) RunAuto(cmd *cobra.Command, args []string, d lxd.InstanceServe Devices: map[string]map[string]string{ "eth0": { "type": "nic", - "nictype": "bridged", - "parent": network.Name, + "network": network.Name, "name": "eth0", }, }, @@ -173,8 +172,7 @@ func (c *cmdInit) RunAuto(cmd *cobra.Command, args []string, d lxd.InstanceServe } else { config.Profiles[0].Devices["eth0"] = map[string]string{ "type": "nic", - "nictype": "bridged", - "parent": network.Name, + "network": network.Name, "name": "eth0", } } diff --git a/lxd/main_init_interactive.go b/lxd/main_init_interactive.go index 28e4ee4967..110c823913 100644 --- a/lxd/main_init_interactive.go +++ b/lxd/main_init_interactive.go @@ -331,9 +331,8 @@ func (c *cmdInit) askNetworking(config *cmdInitData, d lxd.InstanceServer) error // Add to the default profile config.Node.Profiles[0].Devices["eth0"] = map[string]string{ "type": "nic", - "nictype": "bridged", "name": "eth0", - "parent": "lxdfan0", + "network": "lxdfan0", } } @@ -356,9 +355,8 @@ func (c *cmdInit) askNetworking(config *cmdInitData, d lxd.InstanceServer) error // Add to the default profile config.Node.Profiles[0].Devices["eth0"] = map[string]string{ "type": "nic", - "nictype": "bridged", "name": "eth0", - "parent": network.Name, + "network": network.Name, } // IPv4
_______________________________________________ lxc-devel mailing list lxc-devel@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-devel