Closed thiagohflima closed 4 months ago
I ran into a situation in which the additional configuration in /etc/config/network
caused issues.
I am investigating the possibility of removing that.
I don't think we can remove ifname
from the wireless configuration for different reasons, it doens't hurt having it defined explicitly.
So I am focusing on removing the unnecessary definitions in the /etc/config/network
.
https://github.com/openwisp/netjsonconfig/pull/298 should fix this. I am testing it.
Scenario
Consider the following network configuration:
The goal is to create two SSIDs for each VLAN:
NetJSON Configuration
This configuration generates the following (showing only wireless-related settings):
Package Network
Package Wireless
When manually configuring in OpenWRT, it is simplified as follows:
Package Network
There's no config added in
network
Package Wireless
As observed, the manual configuration lacks the ifname attribute in the wireless package, and no interfaces are created in the network package. While the current configuration works, there's a consideration about simplifying the OpenWisp-generated config. Does this simplification make sense?