disables any IP address that is in the address list
/ip firewall address-list disable [find where name="test"]
I think the TS wants to be able to enable/disable items on a list...which is, as far as I know, not possible.you're not accurate in your description, a script can't read your mind.
The items on address list can be disabled or enabled individually.I think the TS wants to be able to enable/disable items on a list...which is, as far as I know, not possible.
/ip firewall address-list disable [find where name="test"]
/ip firewall address-list enable [find where name="test"]
/ip firewall address-list enable [find where list="test" and address=93.184.216.34]
/ip firewall address-list enable [find where list="test" and address=93.184.216.0/24]
/ip firewall address-list enable [find where list="test" and address="www.example.com"]
/ip firewall address-list enable [find where list="test" and address in 93.184.216.0/24]
{
/ip firewall address-list disable [find where list="test" and address~"10.1.1.2|10.1.1.5|10.1.1.6"]
}
{
/ip firewall address-list enable [find where list="test" and address~"10.1.1.2|10.1.1.5|10.1.1.6"]
}