The following pull request was submitted through Github.
It can be accessed and reviewed at: https://github.com/lxc/lxd/pull/6354

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 ce0941213ff55ff5381b6f98e0ac1848fb612c4b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Graber?= <stgra...@ubuntu.com>
Date: Sat, 26 Oct 2019 19:57:25 -0400
Subject: [PATCH] lxd/networks: Nicer error on misisng IPv6
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/networks.go | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/lxd/networks.go b/lxd/networks.go
index 767a14fefd..dfcb831a65 100644
--- a/lxd/networks.go
+++ b/lxd/networks.go
@@ -1093,6 +1093,10 @@ func (n *network) Setup(oldConfig map[string]string) 
error {
 
        // IPv6 bridge configuration
        if !shared.StringInSlice(n.config["ipv6.address"], []string{"", 
"none"}) {
+               if !shared.PathExists("/proc/sys/net/ipv6") {
+                       return fmt.Errorf("Network has ipv6.address but kernel 
IPv6 support is missing")
+               }
+
                err := 
device.NetworkSysctlSet(fmt.Sprintf("ipv6/conf/%s/autoconf", n.name), "0")
                if err != nil {
                        return err
_______________________________________________
lxc-devel mailing list
lxc-devel@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-devel

Reply via email to