Trying to get the ip address assigned to ether2 (by DHCP). ether1 has a statically assigned address.
Running the following piece of code:
:put [/ip address get [/ip address find interface="ether2"] address]
will run without errors.
Output on ROS 5.22 (for example) gives the desired result, i.e. the address or an error “no such item” if there is NO address on ether2.
Running the same code snippet on ROS 6.7 does give the correct address if it is assigned to ether2. BUT if there’s no address on ether2, it will silently return the address of another interface, like ether1.
Can anyone confirm this? (Tested on an RB/951-2n)