X-Git-Url: https://git.llucax.com/software/pymin.git/blobdiff_plain/296d853cc95fd5bef262248cfe21b507abd26a4f..6e49be26bf70a6fcd4b29ffc8cb270edf2e3c500:/pymin/services/ip/templates/route_add?ds=sidebyside diff --git a/pymin/services/ip/templates/route_add b/pymin/services/ip/templates/route_add index 4b92915..fdaf1a4 100644 --- a/pymin/services/ip/templates/route_add +++ b/pymin/services/ip/templates/route_add @@ -1 +1,5 @@ -ip route add dev ${dev} ${net_addr}/${prefix} via ${gateway} \ No newline at end of file +%if dev is not None: +ip route add dev ${dev} ${net_addr}/${prefix} via ${gateway} +%else: +ip route add ${net_addr}/${prefix} via ${gateway} +%endif \ No newline at end of file