Skip usb nic in node discovery
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10592 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
daac7a7b86
commit
6e4a81262d
@ -198,6 +198,9 @@ sub process_request {
|
||||
my $forcenic=0; #-1 is force skip, 0 is use default behavior, 1 is force to be declared even if hosttag is skipped to do so
|
||||
foreach (@{$request->{mac}}) {
|
||||
@ifinfo = split /\|/;
|
||||
if ($ifinfo[1] eq 'usb0') { #skip usb nic
|
||||
next;
|
||||
}
|
||||
$bydriverindex{$ifinfo[0]} += 1;
|
||||
if (scalar @discoverynics) {
|
||||
$forcenic=-1; #$forcenic defaults to explicitly skip nic
|
||||
|
Loading…
x
Reference in New Issue
Block a user