openwisp / openwisp-controller

Network and WiFi controller: provisioning, configuration management and updates, (pull via openwisp-config or push via SSH), x509 PKI management and more. Mainly OpenWRT, but designed to work also on other systems.
https://openwisp.io/docs/dev/controller/
Other
556 stars 182 forks source link

[feature] Support variables everywhere in the NetJSON config #528

Open sklemer1 opened 3 years ago

sklemer1 commented 3 years ago

I can't find a way to use variables for integer fields like wifi channels.

Either it is non-conforming json or it doesn't fit the schema.

nemesifier commented 3 years ago

It's not supported now unfortunatley. I have plans to solve this in the future versions but it will take time.

kellerman commented 2 years ago

Also stumbled upon this problem. Auto channel assignment is not really working (channel value '0' makes the radios just to get disabled) and integer variables doesn't work. Creating more templates for each channel work fine as a workaround, but is a bit messy. It would be nice to see a better way to set numeric values.

nemesifier commented 2 years ago

Depends on https://github.com/openwisp/netjsonconfig/issues/223.

nemesifier commented 2 years ago

Also stumbled upon this problem. Auto channel assignment is not really working (channel value '0' makes the radios just to get disabled)

BTW: this should not happen, OpenWrt can handle automatic channel selection via hostpad very well since many versions.

kellerman commented 2 years ago

Also stumbled upon this problem. Auto channel assignment is not really working (channel value '0' makes the radios just to get disabled)

BTW: this should not happen, OpenWrt can handle automatic channel selection via hostpad very well since many versions.

Yes, just rechecked and it did set to auto this time. I have a bad expirience with Mikrotiks RouterOS and wireless. The auto selection was just crap (and whole wireless in general). I have already flashed 3 different MT models and getting much better wireless speeds and range. If the channel auto selection works fine, then I might as well keep it that way.