From a177d496d503982b40894d0a8b8251d34466e184 Mon Sep 17 00:00:00 2001 From: yinle Date: Fri, 23 Dec 2011 02:05:58 +0000 Subject: [PATCH] 1.write mpa for cmm instead of hcp. 2. Not write ip for the cmm,fsp,bpa node. git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11290 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/lsslp.pm | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/lsslp.pm b/xCAT-server/lib/xcat/plugins/lsslp.pm index 2554fb55b..deaf8c44c 100644 --- a/xCAT-server/lib/xcat/plugins/lsslp.pm +++ b/xCAT-server/lib/xcat/plugins/lsslp.pm @@ -3141,7 +3141,11 @@ sub format_stanza { ################################# # Add each attribute ################################# - $result .= "\thcp=$name\n"; + if ($type eq "cmm") { + $result .= "\tmpa=$name\n"; + } else { + $result .= "\thcp=$name\n"; + } foreach ( @attribs ) { my $d = $data[$i++]; @@ -3174,7 +3178,7 @@ sub format_stanza { next; } } elsif ( /^ip$/ ) { - if ( $type =~ /^(frame|cec)$/ ) { + if ( $type =~ /^(frame|cec|fsp|bpa|cmm)$/ ) { next; } } elsif (/^hidden$/) { @@ -3238,7 +3242,11 @@ sub format_xml { ################################# # Add each attribute ################################# - $href->{Node}->{"hcp"} = $name; + if ($type eq "cmm") { + $href->{Node}->{"mpa"} = $name; + } else { + $href->{Node}->{"hcp"} = $name; + } foreach ( @attribs ) { my $d = $data[$i++]; @@ -3271,7 +3279,7 @@ sub format_xml { next; } } elsif ( /^ip$/ ) { - if ( $type =~ /^(frame|cec)$/ ) { + if ( $type =~ /^(frame|cec|fsp|bpa|cmm)$/ ) { next; } } elsif (/^hidden$/) {