/[smeserver]/rpms/e-smith-base/sme9/e-smith-base-5.8.0-expand_route_bond0.patch
ViewVC logotype

Annotation of /rpms/e-smith-base/sme9/e-smith-base-5.8.0-expand_route_bond0.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (hide annotations) (download)
Thu May 4 10:55:44 2017 UTC (7 years, 1 month ago) by vip-ire
Branch: MAIN
CVS Tags: e-smith-base-5_6_0-34_el6_sme, e-smith-base-5_6_0-36_el6_sme, e-smith-base-5_6_0-35_el6_sme, e-smith-base-5_6_0-33_el6_sme, e-smith-base-5_6_0-32_el6_sme, e-smith-base-5_6_0-31_el6_sme, HEAD
* Thu May 4 2017 Daniel Berteaud <daniel@firewall-services.com> 5.6.0-31.sme
- Backport from sme10: Expand route-bond0 when nic bonding is enabled
  [SME: 10270]

1 vip-ire 1.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;

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed