Fix the mistake that lsslp can't write hmc's mtms

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.6@11163 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
yinle
2011-12-07 10:30:55 +00:00
parent 953a306215
commit 39e1cd10e2
+7 -2
View File
@@ -602,10 +602,10 @@ sub add_ppchcp {
my $hwtype = shift;
my $values = shift;
my @tabs = qw(ppchcp nodehm nodelist nodetype mac ppc);
my @tabs = qw(ppchcp nodehm nodelist nodetype mac ppc vpd);
my %db = ();
my ($name, $mac) = split ',', $values;
my ($name, $mac, $mtm, $sn, $ip) = split ',', $values;
###################################
# Open database needed
@@ -641,6 +641,11 @@ sub add_ppchcp {
# Update mac table
###################################
$db{mac}->setNodeAttribs( $name, {mac=>$mac});
###################################
# Update vpd table
###################################
$db{vpd}->setNodeAttribs( $name, {mtm=>$mtm});
$db{vpd}->setNodeAttribs( $name, {serial=>$sn});
###################################
# Update nodelist table