Fix the mistake that lsslp can't write hmc's mtms
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11162 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
38703acefa
commit
69b4010cd4
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user