X-Git-Url: https://git.llucax.com/software/pymin.git/blobdiff_plain/d6dfd46ed31d985e364b9ea9a404c394f15c2348..HEAD:/services/ip/templates/ip_add diff --git a/services/ip/templates/ip_add b/services/ip/templates/ip_add index 6bb6466..8f5cc15 100644 --- a/services/ip/templates/ip_add +++ b/services/ip/templates/ip_add @@ -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