Isaksson / node-red-contrib-unifi

MIT License
51 stars 20 forks source link

Is there a way to control Traffic Management rules? #76

Closed fmarkf closed 1 year ago

fmarkf commented 2 years ago

Hi! I'd like to be able to control Traffic Management rules from Node-Red. Is there a way of doing it using this addon? Thank you!

Isaksson commented 2 years ago

If you create some traffic Management Rule, will it be created as an firewall rule or is it separated?

fmarkf commented 2 years ago

It is separated. I have also tried using id from the Traffic Management rules webpage with command "enableFirewallRule", but it did not work.

Isaksson commented 2 years ago

I do not have access to a device that have this feature, so it's hard for me to try to implement a function for this.

fmarkf commented 2 years ago

I do not have access to a device that have this feature, so it's hard for me to try to implement a function for this.

I understand and appreciate what you've already implemented.

Please let me know if I can run any tests that could help. I have Dream Machine (standard) running UniFi OS UDM 1.12.22 - Network 7.1.66. Thanks.

Isaksson commented 1 year ago

I have now pushed a new version that let you enable/disable Traffic Management Rules.

fmarkf commented 1 year ago

Thank you very much! I tested it and it worked! UniFi OS UDM 1.12.38 - Network 7.2.97

Isaksson commented 1 year ago

Thanks for verifying the new commands.