code: def vb_get_network_adapters(machine_name=None, machine=None):
      '''
      A valid machine_name or a machine is needed to make this work!
  
      @param machine_name:
      @type machine_name: str
      @param machine:
      @type machine: IMachine
      @return: INetorkAdapter's converted to dicts
      @rtype: [dict]
      '''
  
      if machine_name:
          machine = vb_get_box().findMachine(machine_name)
      network_adapters = []
  
      for i in range(vb_get_max_network_slots()):
          try:
              inetwork_adapter = machine.getNetworkAdapter(i)
              network_adapter = vb_xpcom_to_attribute_dict(
                  inetwork_adapter, 'INetworkAdapter'
              )
              network_adapter['properties'] = inetwork_adapter.getProperties('')
              network_adapters.append(network_adapter)
          except Exception:
              pass
  
      return network_adapterf vb_get_network_adapters(machine_name=None, machine=None):
      '''
      A valid machine_name or a machine is needed to make this work!
  
      @param machine_name:
      @type machine_name: str
      @param machine:
      @type machine: IMachine
      @return: INetorkAdapter's converted to dicts
      @rtype: [dict]
      '''
  
      if machine_name:
          machine = vb_get_box().findMachine(machine_name)
      network_adapters = []
  
      for i in range(vb_get_max_network_slots()):
          try:
              inetwork_adapter = machine.getNetworkAdapter(i)
              network_adapter = vb_xpcom_to_attribute_dict(
                  inetwork_adapter, 'INetworkAdapter'
              )
              network_adapter['properties'] = inetwork_adapter.getProperties('')
              network_adapters.append(network_adapter)
          except Exception:
              pass
  
      return network_adapters
docs: A valid machine_name or a machine is needed to make this work!
  
      @param machine_name:
      @type machine_name: str
      @param machine:
      @type machine: IMachine
      @return: INetorkAdapter's converted to dicts
      @rtype: [dict]