]> 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 d6307b31b6cc90b62085b6dade97d8d93ff606f0..8f5cc15bd062e6b6db07c33f90d5e4dc1ed62bbb 100644 (file)
@@ -1 +1,5 @@
-ip addr add dev ${dev} ${addr}/${netmask} 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