fix bug 3834: 'lsslp -s CMM -w' write different id for cmm01 with 'rscan cmm01 -u'

This commit is contained in:
zhaoertao 2013-10-16 02:31:38 -07:00
parent e1ba890613
commit 56636cf4e8

View File

@ -1433,10 +1433,10 @@ sub xCATdB {
$machash{$hostname} = {mac=>$mac};
}elsif ($type =~ /^cmm$/){
$nodelisthash{$hostname} = {groups=>$groups, hidden=>$hidden};
$vpdhash{$hostname} = {mtm=>$model, serial=>$serial};
$vpdhash{$hostname} = {mtm=>$model, serial=>$serial, side=>$side};
$nodetypehash{$hostname} = {nodetype=>$globalnodetype{$type}};
$nodehmhash{$hostname} = {mgt=>"blade"};
$mphash{$hostname} = {nodetype=>$globalhwtype{$type}, mpa=>$hostname, id=>$side};
$mphash{$hostname} = {nodetype=>$globalhwtype{$type}, mpa=>$hostname};
$hostshash{$hostname} = {otherinterfaces=>$otherif};
}
}