Hello, I’m trying to update my DDNS interfaces but when I try to obtain the IP of an interface that has no IP, sometimes some interfaces did not get IP by DHCP cause the ISP is down, then the script abort in that interface, this is the line I use to obtain the ip
: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