[bug] Address-list address stored as string
Posted: Wed Aug 02, 2017 3:56 pm
I believe I've found a bug in one of the recent versions of ROS as one of my scripts stopped working properly. After some investigation I've found out that addresses in address lists are stored as srings. This variable type used to be ip for ips [127.0.0.1] and str for subnets [127.0.0.1/24].
It is possible to use :toip as a workaround:
This workaround returns ip for ips [127.0.0.1] but nil for subnets [127.0.0.1/24].
I'd like to know if the change is a bug or is it intentional.
Code: Select all
> :put [:typeof [/ip address get number=0 value-name=address]]
ip
> :put [:typeof [/ip firewall address-list get number=0 value-name=address]]
str
Code: Select all
> :put [:typeof [:toip [/ip firewall address-list get number=0 value-name=address]]]
ip
I'd like to know if the change is a bug or is it intentional.