Mailinglist Archive: yast-commit (1914 mails)

< Previous Next >
[yast-commit] r58613 - /trunk/network/src/lan/YaPI/NETWORK.pm
  • From: mzugec@xxxxxxxxxxxxxxxx
  • Date: Thu, 10 Sep 2009 13:55:44 -0000
  • Message-id: <E1Mlk7k-0002VF-NZ@xxxxxxxxxxxxxxxx>
Author: mzugec
Date: Thu Sep 10 15:55:44 2009
New Revision: 58613

URL: http://svn.opensuse.org/viewcvs/yast?rev=58613&view=rev
Log:
YaPI: write route settings

Modified:
trunk/network/src/lan/YaPI/NETWORK.pm

Modified: trunk/network/src/lan/YaPI/NETWORK.pm
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/network/src/lan/YaPI/NETWORK.pm?rev=58613&r1=58612&r2=58613&view=diff
==============================================================================
--- trunk/network/src/lan/YaPI/NETWORK.pm (original)
+++ trunk/network/src/lan/YaPI/NETWORK.pm Thu Sep 10 15:55:44 2009
@@ -58,7 +58,16 @@
sub Write {
my $self = shift;
my $args = shift;
-y2internal("args", $args);
+ if (exists($args->{'route'})){
+ Routing->Read();
+ Routing->Routes([ {"destination" => "default",
+ "gateway" => $args->{'route'}->{'default'}->{'via'},
+ "netmask" => "-",
+ "device" => "-"
+ }
+ ]);
+ Routing->Write();
+ }
return 1;
}


--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages