Blame SOURCES/0420-network-flush-only-IPv4-addresses-on-configuration.patch

712866
From cc3f588071c35821b55e1db2201b0650df688dcc Mon Sep 17 00:00:00 2001
712866
From: Harald Hoyer <harald@redhat.com>
712866
Date: Thu, 30 Jun 2016 11:11:37 +0200
712866
Subject: [PATCH] network: flush only IPv4 addresses on configuration
712866
712866
also flush on dhcp
712866
---
712866
 modules.d/40network/ifup.sh | 3 ++-
712866
 1 file changed, 2 insertions(+), 1 deletion(-)
712866
712866
diff --git a/modules.d/40network/ifup.sh b/modules.d/40network/ifup.sh
5c6c2a
index 19b7bbdc..cedf9a77 100755
712866
--- a/modules.d/40network/ifup.sh
712866
+++ b/modules.d/40network/ifup.sh
712866
@@ -112,6 +112,7 @@ do_dhcp() {
712866
 
712866
     [ -n "$macaddr" ] && ip link set address $macaddr dev $netif
712866
     [ -n "$mtu" ] && ip link set mtu $mtu dev $netif
712866
+    ip -4 addr flush dev $netif
712866
 
712866
     while [ $_COUNT -lt $_DHCPRETRY ]; do
712866
         info "Starting dhcp for interface $netif"
712866
@@ -188,7 +189,7 @@ do_static() {
712866
             warn "Duplicate address detected for $ip for interface $netif."
712866
             return 1
712866
         fi
712866
-        ip addr flush dev $netif
712866
+        ip -4 addr flush dev $netif
712866
         ip addr add $ip/$mask ${srv:+peer $srv} brd + dev $netif
712866
     fi
712866