From d6ed91fd9fbb4cb7febfdfc8b8284eea3de7176f Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Fri, 27 Jan 2012 15:12:06 +0000 Subject: [PATCH] Mask Trunk ports from being treated as 'normal' ports git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11421 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- perl-xCAT/xCAT/MacMap.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/perl-xCAT/xCAT/MacMap.pm b/perl-xCAT/xCAT/MacMap.pm index 1464c8e36..913a5d140 100644 --- a/perl-xCAT/xCAT/MacMap.pm +++ b/perl-xCAT/xCAT/MacMap.pm @@ -117,7 +117,7 @@ OID, and have the switch table port value match exactly the format suggested by #at this point we know the string the user wanted does exist on this port, now we move on to non-ethernet ports that may ambiguously match the user request as well #stop contemplating vlan, Nu, stacking ports, and console interfaces - if (($namepersnmp =~ /vl/i) or ($namepersnmp =~ /Nu/) or ($namepersnmp =~ /onsole/) or ($namepersnmp =~ /Stack/)) { + if (($namepersnmp =~ /vl/i) or ($namepersnmp =~ /Nu/) or ($namepersnmp =~ /onsole/) or ($namepersnmp =~ /Stack/) or ($namepersnmp =~ /Trunk/)) { return 0; } #broken up for code readablitiy, don't check port channel numbers or CPU