]> git.llucax.com Git - software/pymin.git/blobdiff - pymin/services/ip/templates/route_add
Merge branch 'master' of baryon.com.ar:/home/luca/pymin
[software/pymin.git] / pymin / services / ip / templates / route_add
index 4b92915ff33222fecd983c38ad036560b62b6621..fdaf1a4e6f52753f9f87adda57fac5f04fdcb798 100644 (file)
@@ -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