Ubiquiti-App / UCRM-plugins

Plugins for UCRM - Complete WISP Management Platform
https://ucrm.ubnt.com/
MIT License
61 stars 102 forks source link

Mikrotik Queue Sync plugin - configure multiple routers #144

Open juanluisbaptiste opened 5 years ago

juanluisbaptiste commented 5 years ago

Hi,

We have various Mikrotik routers which their queues need to be in sync with ucrm. As far as I can see with this plugin, currently this is not possible, only one router is supported.

Is there any plans to support multiple routers with this plugin ?

cdmarioe commented 4 years ago

Same question?

davidandrewcope commented 3 years ago

I don't know if anyone looks at these issues, but if you stumble in here it appears you can synchronize multiple routers by separating the IP addresses with a comma. I believe you will need to use the same username/password combo across all routers though.

SirDan1963 commented 3 years ago

I don't know if anyone looks at these issues, but if you stumble in here it appears you can synchronize multiple routers by separating the IP addresses with a comma. I believe you will need to use the same username/password combo across all routers though.

This solution worked for me with two routers. Both routers have same username and password.

SirDan1963 commented 3 years ago

It turns out the above solution did not work 100% for us. When separating the IP addresses with a comma, queues were added to both routers initially, but when a user service plan changes in the UCRM or if the queue was removed from the routers manually, the queue would only update or be added on the second router IP address for some reason. What so far what has worked for us is to change the name of the plugin in the manifest.json file and repackage the plugin using the pack-plugin script. This allows you to upload a second copy of the plugin into the UCRM. Set each instance of the plugin to different router IP address. So far we can remove queues from each router manually and they get recreated. Also, changing a user service plan in the UCRM makes the queue update on each router. This of course is not a perfect solution, especially if you have several routers you want to run queues on. In our case we only need to synchronize two routers.