mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-06 07:11:13 +02:00
refactor: use f-strings in dynamips NIO modules
This commit is contained in:
6 files changed
+13
-57
No files matched your search
@@ -42,15 +42,9 @@ class NIOLinuxEthernet(NIO):
|
||||
|
||||
async def create(self):
|
||||
|
||||
await self._hypervisor.send(
|
||||
"nio create_linux_eth {name} {eth_device}".format(name=self._name, eth_device=self._ethernet_device)
|
||||
)
|
||||
await self._hypervisor.send(f"nio create_linux_eth {self._name} {self._ethernet_device}")
|
||||
|
||||
log.info(
|
||||
"NIO Linux Ethernet {name} created with device {device}".format(
|
||||
name=self._name, device=self._ethernet_device
|
||||
)
|
||||
)
|
||||
log.info(f"NIO Linux Ethernet {self._name} created with device {self._ethernet_device}")
|
||||
|
||||
@property
|
||||
def ethernet_device(self):
|
||||
|
||||
Reference in new issue
Block a user