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 8081d7bf4f
commit c8899e694a

View File

@ -1450,10 +1450,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};
}
}