Browse Source

network:ibft put IPv6 IP in brackets

ip=2620:0052:0000:2220:0226:b9ff:fe81:cde4::[2620:0052:0000:2220:0000:0000:0000:03fe]:64::ibft0:none

should be

ip=[2620:0052:0000:2220:0226:b9ff:fe81:cde4]::[2620:0052:0000:2220:0000:0000:0000:03fe]:64::ibft0:none

https://bugzilla.redhat.com/show_bug.cgi?id=1322592#c19
Harald Hoyer 9 years ago
parent
commit
b8e6c051c6
  1. 1
      modules.d/40network/net-lib.sh

1
modules.d/40network/net-lib.sh

@ -277,6 +277,7 @@ ibft_to_cmdline() { @@ -277,6 +277,7 @@ ibft_to_cmdline() {
[ -e ${iface}/hostname ] && hostname=$(read a < ${iface}/hostname; echo $a)
if [ "$family" = "ipv6" ] ; then
if [ -n "$ip" ] ; then
ip="[$ip]"
[ -n "$prefix" ] || prefix=64
mask="$prefix"
fi

Loading…
Cancel
Save