[lxc-devel] [lxd/master] add eth0 "name" to the default profile

tych0 on Github lxc-bot at linuxcontainers.org
Tue Feb 9 15:41:50 UTC 2016


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 445 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20160209/5e88dba5/attachment.bin>
-------------- next part --------------
From 0465a897b993e4555dc1a7dd34661c71bbc78942 Mon Sep 17 00:00:00 2001
From: Tycho Andersen <tycho.andersen at canonical.com>
Date: Tue, 9 Feb 2016 08:40:54 -0700
Subject: [PATCH] add eth0 "name" to the default profile

I'm not sure if we want to try and do this retroactively or not.

Closes #1491

Signed-off-by: Tycho Andersen <tycho.andersen at canonical.com>
---
 lxd/db_profiles.go | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lxd/db_profiles.go b/lxd/db_profiles.go
index 8855a74..ee0f986 100644
--- a/lxd/db_profiles.go
+++ b/lxd/db_profiles.go
@@ -98,6 +98,7 @@ func dbProfileCreateDefault(db *sql.DB) error {
 	// TODO: We should the scan for bridges and use the best available as default.
 	devices := shared.Devices{
 		"eth0": shared.Device{
+			"name":    "eth0",
 			"type":    "nic",
 			"nictype": "bridged",
 			"parent":  "lxcbr0"}}


More information about the lxc-devel mailing list