[Solved] Mikrotik Config Push error
Posted: Fri Dec 10, 2021 7:36 pm
Im trying to to write a new push script for our Mikrotik routers to standardize our allowed "access address" lists. In the past I was able to just type out the CLI commands in the Commands window and that would work, it would even bypass addresses that were already in the list. Not sure if it was the update to Unimus but now the push config stops if it encounters an existing address.
Example.
If I run this push script on a router with no entries in the address list it works fine.
Commands
Output
But if the address list already contains the 172.16.0.0/12 entry Unimus stops running the commands and errors out
Is this behavior by design? If so is there a way to disable this.
In the end I would just like to push my whole new ACL list to all my routers and fill in any missing address list entries if possible.
Example.
If I run this push script on a router with no entries in the address list it works fine.
Commands
Code: Select all
/ip firewall address-list
add address=172.16.0.0/12 comment=Local_Access list="Allowed Access"
add address=10.176.0.0/13 comment=OSPF list="Allowed Access"
Code: Select all
<prompt> /ip firewall address-list
<prompt> add address=172.16.0.0/12 comment=Local_Access list="Allowed Access"
<prompt> add address=10.176.0.0/13 comment=OSPF list="Allowed Access"
<prompt>
Code: Select all
<prompt> /ip firewall address-list
<prompt> add address=172.16.0.0/12 comment=Local_Access list="Allowed Access"
failure: already have such entry
<prompt>
In the end I would just like to push my whole new ACL list to all my routers and fill in any missing address list entries if possible.