From 093f85a1eb8cbd54f2b1ce29432c85ffab4d5326 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Tue, 17 Jun 2008 23:29:15 +0000 Subject: [PATCH] -Quick hack for the new AMM BPET42D format and getmacs. However, increasingly, the blade situation is also getting too complex for the simple 'getmacs' type of functionality git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1683 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/blade.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/xCAT-server/lib/xcat/plugins/blade.pm b/xCAT-server/lib/xcat/plugins/blade.pm index 8a898cfee..142175fc6 100644 --- a/xCAT-server/lib/xcat/plugins/blade.pm +++ b/xCAT-server/lib/xcat/plugins/blade.pm @@ -971,6 +971,7 @@ sub getmacs { (my $macd,my $mac) = split (/:/,$macs[$midx],2); $mac =~ s/\s+//g; if ($macd =~ /mac address \d/i) { + $mac =~ s/\s*->.*$//; my $mactab = xCAT::Table->new('mac',-create=>1); $mactab->setNodeAttribs($curn,{mac=>$mac}); $mactab->close;