[lxc-devel] [lxd/master] #3727 LXD Network ovs bridge - Error with interfaces ipv6 link-local

jadjay on Github lxc-bot at linuxcontainers.org
Mon Aug 28 09:42:20 UTC 2017


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 327 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20170828/569df0b7/attachment.bin>
-------------- next part --------------
From d075d9f35cac33ba1a44b2a3163b1efa0c272125 Mon Sep 17 00:00:00 2001
From: jav <javond at adista.fr>
Date: Mon, 28 Aug 2017 11:40:47 +0200
Subject: [PATCH] LXD Network ovs bridge - Error with interfaces ipv6
 link-local - except just link-local #3727

---
 lxd/networks.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lxd/networks.go b/lxd/networks.go
index de0b7d840..25890c7ef 100644
--- a/lxd/networks.go
+++ b/lxd/networks.go
@@ -666,7 +666,7 @@ func (n *network) Start() error {
 			}
 
 			addrs, err := iface.Addrs()
-			if err == nil && len(addrs) != 0 {
+			if err == nil && len(addrs) > 1 {
 				return fmt.Errorf("Only unconfigured network interfaces can be bridged")
 			}
 


More information about the lxc-devel mailing list