Advertisement
Guest User

script 1 - mikrotik

a guest
Aug 20th, 2019
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. :local a
  2. :local d
  3. :foreach id in=[/routing bgp peer find] do={
  4. :set a [/routing bgp peer get $id remote-address];
  5. :set d [/ip firewall address-list find where list=peer-bgp address=$a]
  6. :if ($d = {} ) do={
  7. /ip firewall address-list add list=peer-bgp address=$a;
  8. }
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement