2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-08-19 09:40:21 +00:00

Merge pull request #2151 from whowutwut/noboot_vlantag

Support noboot on interfaces that are tagged vlan on the mangement node
This commit is contained in:
zet809
2016-11-16 15:34:46 +08:00
committed by GitHub

View File

@@ -73,6 +73,17 @@ sub process_request {
}
}
my $nicips = xCAT::NetworkUtils->get_nic_ip();
foreach (keys $nicips) {
# To support tagged vlan, create entries in the hash for the
# interface name removing the physical interface ending:
# 'enP1p12s0f0.2@enP1p12s0f0' => 'enP1p12s0f0.2'
if ($_ =~ "@") {
my $newkey = $_;
$newkey =~ s/\@.*//g;
$$nicips{$newkey} = ${nicips}->{$_};
}
}
foreach (keys %nobootnics) {
if (defined($nicips->{$_})) {
$nobootnicips{$nicips->{$_}} = 1;