mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-08-19 01:30: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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user