Blame SOURCES/0453-network-ibft-put-IPv6-IP-in-brackets.patch

712866
From b8e6c051c6ad6ae3ae93db8e74f37dbc82c22514 Mon Sep 17 00:00:00 2001
712866
From: Harald Hoyer <harald@redhat.com>
712866
Date: Wed, 17 Aug 2016 16:25:09 +0200
712866
Subject: [PATCH] network:ibft put IPv6 IP in brackets
712866
712866
ip=2620:0052:0000:2220:0226:b9ff:fe81:cde4::[2620:0052:0000:2220:0000:0000:0000:03fe]:64::ibft0:none
712866
712866
should be
712866
712866
ip=[2620:0052:0000:2220:0226:b9ff:fe81:cde4]::[2620:0052:0000:2220:0000:0000:0000:03fe]:64::ibft0:none
712866
712866
https://bugzilla.redhat.com/show_bug.cgi?id=1322592#c19
712866
---
712866
 modules.d/40network/net-lib.sh | 1 +
712866
 1 file changed, 1 insertion(+)
712866
712866
diff --git a/modules.d/40network/net-lib.sh b/modules.d/40network/net-lib.sh
5c6c2a
index de334d98..3459e898 100755
712866
--- a/modules.d/40network/net-lib.sh
712866
+++ b/modules.d/40network/net-lib.sh
712866
@@ -277,6 +277,7 @@ ibft_to_cmdline() {
712866
                 [ -e ${iface}/hostname ] && hostname=$(read a < ${iface}/hostname; echo $a)
712866
                 if [ "$family" = "ipv6" ] ; then
712866
                     if [ -n "$ip" ] ; then
712866
+                        ip="[$ip]"
712866
                         [ -n "$prefix" ] || prefix=64
712866
                         mask="$prefix"
712866
                     fi