X-Git-Url: https://git.llucax.com/software/pymin.git/blobdiff_plain/52d87d11873f1a37b21100700f4798a375361f3f..6ed640af531e717da24d1dd423ce4f2df0fdec71:/pymin/services/ip/templates/ip_add?ds=sidebyside diff --git a/pymin/services/ip/templates/ip_add b/pymin/services/ip/templates/ip_add index d6307b3..8f5cc15 100644 --- a/pymin/services/ip/templates/ip_add +++ b/pymin/services/ip/templates/ip_add @@ -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