]> git.llucax.com Git - software/pymin.git/blobdiff - services/ip/templates/route_add
Add GPL v3 license to the project
[software/pymin.git] / 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