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

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