Duplicate prefix length into 'netmask' field for makenetworks to satisfy odd DB restrictions. Hope strongly no IPv6 code really cares or v4/v6 detection code uses absence of netmask as a cue...

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10953 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2011-11-01 13:38:46 +00:00
parent 9c0503c151
commit 08eadca8f7

View File

@ -426,7 +426,9 @@ sub donets
push @{$rsp->{data}}, " mgtifname=$dev";
} else {
unless ($netexiss) {
$nettab->setAttribs({'net' => $net, 'mask' => ''}, {'netname' => $net, 'mgtifname' => $dev});
my $tmpmask = $net;
$tmpmask =~ s!^.*/!/!;
$nettab->setAttribs({'net' => $net, 'mask' => $tmpmask}, {'netname' => $net, 'mgtifname' => $dev});
}
}