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