# Path: netjsonconfig/backends/openwrt/schema.py



from ..schema import default_radio_driver
from .base import OpenWrtConverter


class Radios(OpenWrtConverter):
    netjson_key = 'radios'
    intermediate_key = 'wireless'
    _uci_types = ['wifi-device']

    def to_intermediate_loop(self, block, result, index=None):
        radio = self.__intermediate_radio(block)
        result.setdefault('wireless', [])

# Path: netjsonconfig/backends/openwrt/schema.py



# Path: netjsonconfig/backends/openwrt/converters/radios.py
from ..schema import default_radio_driver
from .base import OpenWrtConverter



class Radios(OpenWrtConverter):
    netjson_key = 'radios'
    intermediate_key = 'wireless'
    _uci_types = ['wifi-device']

    def to_intermediate_loop(self, block, result, index=None):
        radio = self.__intermediate_radio(block)
        result.setdefault('wireless', [])

        result['wireless'].append(radio)