Please help in writing the script.
Posted: Wed Jan 09, 2019 9:16 pm
I'm new, I have trouble writing a script. Please help in writing the script.
There is an address-list as_1 as_2 as_3. It is necessary to add all the ip address in the new address list with a check,
for example allow_list_ip. After checking, if the address is missing, then add, if the address was deleted from ~as_,then
delete from allow_list_ip
There is an address-list as_1 as_2 as_3. It is necessary to add all the ip address in the new address list with a check,
for example allow_list_ip. After checking, if the address is missing, then add, if the address was deleted from ~as_,then
delete from allow_list_ip
Code: Select all
:foreach ipaddr in= [/ip fi add print as-value where list~"as_"] do={:put ($ipaddr->"address")}