X-Git-Url: https://git.llucax.com/software/pymin.git/blobdiff_plain/d6dfd46ed31d985e364b9ea9a404c394f15c2348..b927d948f9b32c99da909af49f41bb1d4adb2a5e:/services/ip/templates/route_add?ds=sidebyside diff --git a/services/ip/templates/route_add b/services/ip/templates/route_add index 4b92915..fdaf1a4 100644 --- a/services/ip/templates/route_add +++ b/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