Code: Select all
:local AddressDHCP [/ip dhcp-client get [find where interface=bridge_LAN] value-name=address]
:local Network [:pick $AddressDHCP 0 [:find $AddressDHCP "/"]]
:put $AddressDHCP
:put $Network
example:1.1.1.1/24 , and I would like to create a new variable with the network 1.1.1.0/24
I managed to remove /24 but how do I change 1 to 0 ?