[pve-devel] [[PATCH v2] Support for infiniband in pve-manager 2/2]Add check for infiniband to write functions as well
Michael Rasmussen
mir at datanom.net
Fri Oct 21 20:14:52 CEST 2016
Signed-off-by: Michael Rasmussen <mir at datanom.net>
---
src/PVE/INotify.pm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/PVE/INotify.pm b/src/PVE/INotify.pm
index a15b27d..621b555 100644
--- a/src/PVE/INotify.pm
+++ b/src/PVE/INotify.pm
@@ -1201,7 +1201,7 @@ sub __write_etc_network_interfaces {
$d->{type} eq 'OVSBond') {
my $brname = $used_ports->{$iface};
if (!$brname || !$ifaces->{$brname}) {
- if ($iface =~ /^(?:eth|en)/) {
+ if ($iface =~ /^(?:eth|en|ib)/) {
$ifaces->{$iface} = { type => 'eth',
exists => 1,
method => 'manual',
@@ -1290,7 +1290,7 @@ NETWORKDOC
my $pri;
if ($iface eq 'lo') {
$pri = $if_type_hash->{loopback};
- } elsif ($iface =~ m/^(?:eth\d+|en[^:.]+)$/) {
+ } elsif ($iface =~ m/^(?:eth\d+|ib\d+|en[^:.]+)$/) {
$pri = $if_type_hash->{eth} + $child;
} elsif ($iface =~ m/^bond\d+$/) {
$pri = $if_type_hash->{bond} + $child;
--
2.1.4
----
This mail was virus scanned and spam checked before delivery.
This mail is also DKIM signed. See header dkim-signature.
More information about the pve-devel
mailing list