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