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

Annotation of /rpms/e-smith-base/sme10/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.2 - (hide annotations) (download)
Sun Jun 6 20:38:47 2021 UTC (3 years ago) by jpp
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +0 -0 lines
FILE REMOVED
5.8.1

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