code: def validate(config):
      '''
      Validate the beacon configuration
      '''
      if not isinstance(config, list):
          return False, ('Configuration for network_settings '
                         'beacon must be a list.')
      else:
          _config = {}
          list(map(_config.update, config))
  
          interfaces = _config.get('interfaces', {})
          if isinstance(interfaces, list):
              #Old syntax
              return False, ('interfaces section for network_settings beacon'
                             ' must be a dictionary.')
  
          for item in interfaces:
              if not isinstance(_config['interfaces'][item], dict):
                  return False, ('Interface attributes for network_settings beacon'
                                 ' must be a dictionary.')
              if not all(j in ATTRS for j in _config['interfaces'][item]):
                  return False, ('Invalid attributes in beacon configuration.')
      return True, 'Valid beacon configurationf validate(config):
      '''
      Validate the beacon configuration
      '''
      if not isinstance(config, list):
          return False, ('Configuration for network_settings '
                         'beacon must be a list.')
      else:
          _config = {}
          list(map(_config.update, config))
  
          interfaces = _config.get('interfaces', {})
          if isinstance(interfaces, list):
              #Old syntax
              return False, ('interfaces section for network_settings beacon'
                             ' must be a dictionary.')
  
          for item in interfaces:
              if not isinstance(_config['interfaces'][item], dict):
                  return False, ('Interface attributes for network_settings beacon'
                                 ' must be a dictionary.')
              if not all(j in ATTRS for j in _config['interfaces'][item]):
                  return False, ('Invalid attributes in beacon configuration.')
      return True, 'Valid beacon configuration'
docs: Validate the beacon configuration