/[smeserver]/rpms/e-smith-base/sme9/e-smith-base-5.6.0-ip_route_syntax.patch
ViewVC logotype

Annotation of /rpms/e-smith-base/sme9/e-smith-base-5.6.0-ip_route_syntax.patch

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


Revision 1.1 - (hide annotations) (download)
Thu Feb 9 12:40:36 2017 UTC (7 years, 8 months 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-30_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 Feb 9 2017 Daniel Berteaud <daniel@firewall-services.com> 5.6.0-30.sme
- Use ip route syntax to define routes to local network [SME: 9905]

1 vip-ire 1.1 diff -Nur e-smith-base-5.8.0/root/etc/e-smith/templates/etc/sysconfig/network-scripts/route-ethX/10localroutes e-smith-base-5.8.0_bz10083/root/etc/e-smith/templates/etc/sysconfig/network-scripts/route-ethX/10localroutes
2     --- e-smith-base-5.8.0/root/etc/e-smith/templates/etc/sysconfig/network-scripts/route-ethX/10localroutes 2007-01-19 22:33:20.000000000 +0100
3     +++ e-smith-base-5.8.0_bz10083/root/etc/e-smith/templates/etc/sysconfig/network-scripts/route-ethX/10localroutes 2017-02-09 12:16:16.303385445 +0100
4     @@ -20,7 +20,6 @@
5     return "# template expansion error - Could not open networks db\n";
6     }
7    
8     - my $index = 0;
9     foreach my $network ($db->networks)
10     {
11     # Skip local network
12     @@ -34,10 +33,7 @@
13    
14     my $netmask = $network->prop('Mask');
15     my $net = $network->key;
16     - $OUT .= "ADDRESS$index=$net\n";
17     - $OUT .= "NETMASK$index=$netmask\n";
18     - $OUT .= "GATEWAY$index=$router\n";
19     - $index++;
20     + $OUT .= $net . '/' . $netmask . ' via ' . $router . "\n";
21     }
22     }
23    

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