17094c
From 3468310486d0da8d2a6c6bdcddc598b7b8ce5587 Mon Sep 17 00:00:00 2001
17094c
From: Lukas Nykryn <lnykryn@redhat.com>
17094c
Date: Tue, 4 Feb 2020 14:18:01 +0100
17094c
Subject: [PATCH] Revert "wait for IPv6 RA if using none/static IPv6
17094c
 assignment"
17094c
17094c
This reverts commit c603419030136570b5944dc4620f62d07b9e82bb.
17094c
17094c
wait_for_ipv6_dad_link is only called from dhclient script,
17094c
so the original intent "wait for IPv6 RA if using none/static IPv6 assignment"
17094c
does not seem to be correct.
17094c
17094c
Anyway, this brings an issue on isolated networks, where you don't
17094c
have any routes outside. dhclient-script hangs on this check
17094c
and after it times out, dhclient is able to set the address normally.
17094c
17094c
(cherry picked from commit 76f6566fd777e0ee20416061ecb795e8daef33e1)
17094c
17094c
Resolves: #1795276
17094c
---
17094c
 modules.d/40network/net-lib.sh | 1 -
17094c
 1 file changed, 1 deletion(-)
17094c
17094c
diff --git a/modules.d/40network/net-lib.sh b/modules.d/40network/net-lib.sh
17094c
index dcb53804..0f3ca6a8 100755
17094c
--- a/modules.d/40network/net-lib.sh
17094c
+++ b/modules.d/40network/net-lib.sh
17094c
@@ -655,7 +655,6 @@ wait_for_ipv6_dad_link() {
17094c
     while [ $cnt -lt $timeout ]; do
17094c
         [ -n "$(ip -6 addr show dev "$1" scope link)" ] \
17094c
             && [ -z "$(ip -6 addr show dev "$1" scope link tentative)" ] \
17094c
-            && [ -n "$(ip -6 route list proto ra dev "$1" | grep ^default)" ] \
17094c
             && return 0
17094c
         [ -n "$(ip -6 addr show dev "$1" scope link dadfailed)" ] \
17094c
             && return 1
17094c