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