From ade0c9e05ebbc72d937f06d2029cc69204ae1201 Mon Sep 17 00:00:00 2001 From: Lubomir Rintel Date: Mon, 19 Jan 2015 15:18:17 +0100 Subject: [PATCH] manager: don't attempt to activate ipv6.method=shared connections It would be nice if we supported IPv6 network sharing (maybe RFC 7278?), but we don't. Let's not attempt to bring it up, it would fail in stage3. https://bugzilla.redhat.com/show_bug.cgi?id=1183015 (cherry picked from commit 477033b9eff9a6ba168805eafe68272c62cb1cb4) --- src/nm-manager.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/nm-manager.c b/src/nm-manager.c index 9a523cee7e..0a09dea80d 100644 --- a/src/nm-manager.c +++ b/src/nm-manager.c @@ -3107,6 +3107,16 @@ validate_activation_request (NMManager *self, goto error; } + /* Not implemented yet, we want to fail early */ + if (strcmp (nm_utils_get_ip_config_method (connection, NM_TYPE_SETTING_IP6_CONFIG), + NM_SETTING_IP6_CONFIG_METHOD_SHARED) == 0) { + g_set_error_literal (error, + NM_MANAGER_ERROR, + NM_MANAGER_ERROR_CONNECTION_NOT_AVAILABLE, + "Sharing IPv6 connections is not supported yet."); + return NULL; + } + /* Check whether it's a VPN or not */ if ( nm_connection_get_setting_vpn (connection) || nm_connection_is_type (connection, NM_SETTING_VPN_SETTING_NAME))