]> git.llucax.com Git - software/pymin.git/blobdiff - pymin/services/ip/templates/ip_add
Improve logging format.
[software/pymin.git] / pymin / services / ip / templates / ip_add
index 6bb6466c6c556b61a68223a4f80682f005f2ff4e..8f5cc15bd062e6b6db07c33f90d5e4dc1ed62bbb 100644 (file)
@@ -1 +1,5 @@
-ip addr add dev ${dev} ${addr}/${prefix} broadcast ${broadcast}
\ No newline at end of file
+%if peer is None:
+ip addr add dev ${dev} ${addr}/${netmask} broadcast ${broadcast}
+%else:
+ip addr add dev ${dev} ${addr} peer ${peer}
+%endif