1 |
diff -Nur e-smith-base-5.8.0/root/etc/e-smith/events/actions/update-ifcfg e-smith-base-5.8.0_bz10272/root/etc/e-smith/events/actions/update-ifcfg |
2 |
--- e-smith-base-5.8.0/root/etc/e-smith/events/actions/update-ifcfg 2016-02-05 00:14:13.000000000 +0100 |
3 |
+++ e-smith-base-5.8.0_bz10272/root/etc/e-smith/events/actions/update-ifcfg 2017-05-04 12:44:42.228665046 +0200 |
4 |
@@ -14,6 +14,10 @@ |
5 |
if (($c->get('EthernetDriver1')->value || 'unknown') eq 'dummy'){ |
6 |
push @adapters, "dummy\tdummy\t10:00:01:02:03:04\tFake Network Interface\tdummy0"; |
7 |
} |
8 |
+# If NIC bonding is enabled, we need to handle route-bond0 and ifcfg-bond0 |
9 |
+if (($c->get('InternalInterface')->prop('NICBonding') || 'disabled') eq 'enabled'){ |
10 |
+ push @adapters, "bond\tbond\t10:00:01:02:03:04\tBonding virtual Interface\tbond0"; |
11 |
+} |
12 |
|
13 |
# Expand templates for every adapters found |
14 |
foreach my $adapter (@adapters){ |
15 |
@@ -40,7 +44,7 @@ |
16 |
foreach ($c->get_all_by_prop( type => 'interface')){ |
17 |
push @nics, $_->prop('Name'); |
18 |
} |
19 |
-push @nics, $_ foreach (qw/ppp0 bond0 lo/); |
20 |
+push @nics, $_ foreach (qw/ppp0 lo/); |
21 |
my %dedup; |
22 |
@dedup{@nics} = (); |
23 |
@nics = keys %dedup; |