fix for bug 3454: handle the object name like fd59::/64

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15892 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
ligc 2013-04-09 08:20:15 +00:00
parent f3fc6a7f25
commit 6d4cc3f97d

View File

@ -1679,7 +1679,14 @@ sub readFileInput
$look_for_colon = 0; # ok - we have a colon
($objectname, $junk2) = split(/:/, $l);
# Remove any trailing whitespace
$l =~ s/\s*$//;
# IPv6 network names could be something like fd59::/64
# Use all the characters before the last ":" as the object name
# .* means greedy regular expression
$l =~ /^(.*):(.*?)$/;
($objectname, $junk2) = ($1, $2);
# if $junk2 is defined or there's an =
if ($junk2 || grep(/=/, $objectname))