Here is my current script that is failing (Sorry, I am new at scripting and coding):
:local WANip [/ip address get [find interface="ether1-gateway"] address]
:log info "Interface IP is $WANip"
:local WANip [:pick "$WANip" 0 ([:len $WANip] - 3)]
:log info "IP sans the slash notation is $WANip"
/ip ipsec policy set 0 src-address= $WANip sa-src-address=$WANip
I need the src-address=$WANip to have /32 and the sa-src-address=$WANip to not have a /32. The sa-src-address is working but the src-address is not.
Please help. Thanks.