From 521e2c7bbbe8b9d45c61ca195ce240e1cc28449a Mon Sep 17 00:00:00 2001 From: linggao Date: Mon, 19 Sep 2011 20:32:24 +0000 Subject: [PATCH] support for multiple mac addresses for composing nodeid for RMC, defect 3410319 git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10556 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-rmc/plugin/rmcmon.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/xCAT-rmc/plugin/rmcmon.pm b/xCAT-rmc/plugin/rmcmon.pm index da8ac053b..1117d5b63 100644 --- a/xCAT-rmc/plugin/rmcmon.pm +++ b/xCAT-rmc/plugin/rmcmon.pm @@ -890,7 +890,9 @@ sub getNodeID { my $tmp=$tab->getNodeAttribs($node, ['mac']); if (defined($tmp) && ($tmp)) { my $mac=$tmp->{mac}; - $mac =~ s/://g; + $mac =~ s/\|.*//g; #use the first mac + $mac =~ s/\!.*//g; #remove the hostname + $mac =~ s/://g; #remove : $mac = "EA" . $mac . "EA"; $tab->close(); return $mac;