Code: Select all
:local ddnsinterface "wan3_route"
:local ifip;
:set ifip [ /ip address get [/ip address find interface=$ddnsinterface] address ];
:log info "Actual IP is: $ifip
[code]
If wan3_route get an ip, the line works perfect, if not, then the scripts abort or get sucked in that line.
Thanks