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@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org