Blame SOURCES/0407-network-net-lib.sh-correctly-set-mac-address-for-ip-.patch

a0a3b4
From b7f5e42c578295bb725eeb9767a58b02ce3c9ce7 Mon Sep 17 00:00:00 2001
a0a3b4
From: Harald Hoyer <harald@redhat.com>
a0a3b4
Date: Wed, 13 Jan 2016 13:43:38 +0100
a0a3b4
Subject: [PATCH] network/net-lib.sh: correctly set mac address for
a0a3b4
 ip=...:<mtu>:<mac>
a0a3b4
a0a3b4
if ip=...:<mtu>:<mac> was specified, macadress was not set
a0a3b4
a0a3b4
(cherry picked from commit efbc47b8e43ad173d3319f3f6e87b0a60aad9f37)
a0a3b4
---
a0a3b4
 modules.d/40network/net-lib.sh | 3 +++
a0a3b4
 1 file changed, 3 insertions(+)
a0a3b4
a0a3b4
diff --git a/modules.d/40network/net-lib.sh b/modules.d/40network/net-lib.sh
a0a3b4
index f91d169..5a07b4e 100755
a0a3b4
--- a/modules.d/40network/net-lib.sh
a0a3b4
+++ b/modules.d/40network/net-lib.sh
a0a3b4
@@ -421,6 +421,9 @@ ip_to_var() {
a0a3b4
                     ;;
a0a3b4
                 [0-9]*)
a0a3b4
                     mtu="$8"
a0a3b4
+                    if [ -n "${9}" -a -n "${10}" -a -n "${11}" -a -n "${12}" -a -n "${13}" -a -n "${14}" ]; then
a0a3b4
+                        macaddr="${9}:${10}:${11}:${12}:${13}:${14}"
a0a3b4
+                    fi
a0a3b4
                     ;;
a0a3b4
                 *)
a0a3b4
                     if [ -n "${9}" -a -n "${10}" -a -n "${11}" -a -n "${12}" -a -n "${13}" -a -n "${14}" ]; then