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