diff --git a/xCAT-server/lib/perl/xCAT/SvrUtils.pm b/xCAT-server/lib/perl/xCAT/SvrUtils.pm index 3e306e7fb..41350d242 100755 --- a/xCAT-server/lib/perl/xCAT/SvrUtils.pm +++ b/xCAT-server/lib/perl/xCAT/SvrUtils.pm @@ -1266,7 +1266,7 @@ sub get_mac_by_arp () } else { ($ip, $mac) = (undef, undef); } - if (@$IP[1] !~ $ip) { + if (@$IP[1] ne $ip) { ($ip, $mac) = (undef, undef); } else { last; diff --git a/xCAT-server/lib/xcat/plugins/switchdiscover.pm b/xCAT-server/lib/xcat/plugins/switchdiscover.pm index ebc6cb61b..ca192c222 100644 --- a/xCAT-server/lib/xcat/plugins/switchdiscover.pm +++ b/xCAT-server/lib/xcat/plugins/switchdiscover.pm @@ -38,6 +38,7 @@ my %global_mac_identity = ( "6c:ae:8b" => "BNT G8264-T switch", "fc:cf:62" => "BNT G8124 switch", "7c:fe:90" => "Mellanox IB switch", + "cc:37:ab" => "Edgecore Networks Switch", "8c:ea:1b" => "Edgecore Networks Switch" ); @@ -54,6 +55,8 @@ my %global_switch_type = ( mellanox => "Mellanox", MLNX => "Mellanox", MELLAN => "Mellanox", + Cumulus => "onie", + cumulus => "onie", Edgecore => "onie" );