code: def ethernet_adapters(self, ethernet_adapters):
          
  
          self._ethernet_adapters.clear()
          for _ in range(0, ethernet_adapters):
              self._ethernet_adapters.append(EthernetAdapter(interfaces=4))
  
          log.info('IOU "{name}" [{id}]: number of Ethernet adapters changed to {adapters}'.format(name=self._name,
                                                                                                   id=self._id,
                                                                                                   adapters=len(self._ethernet_adapters)))
  
          self._adapters = self._ethernet_adapters + self._serial_adapters
docs: Sets the number of Ethernet adapters for this IOU VM.
  
          :param ethernet_adapters: number of adapters