use ip route replace

This commit is contained in:
Vladimir Kuklin 2013-03-19 13:21:05 +04:00
parent c8d278c875
commit 487ae0006d
1 changed files with 1 additions and 2 deletions

View File

@ -163,8 +163,7 @@ class quantum::agents::l3 (
# turn down the current default route metric priority
# TODO: make function for recognize REAL defaultroute
# temporary use
$update_default_route_metric = "/sbin/ip route del default via ${::default_gateway};\
/sbin/ip route add default via ${::default_gateway} metric 100"
$update_default_route_metric = "/sbin/ip route replace default via ${::default_gateway} metric 100"
exec { 'update_default_route_metric':
command => $update_default_route_metric,