Apply suggestions from code review.

This commit is contained in:
Marek Wolan
2023-08-25 15:58:07 +01:00
parent 05bb0f295b
commit ae6e835955
2 changed files with 18 additions and 19 deletions

View File

@@ -939,7 +939,7 @@ class Node(SimComponent):
nic = self.nics.get(nic)
if nic or nic.uuid in self.nics:
self.nics.pop(nic.uuid)
del nic.parent
nic.parent = None
nic.disable()
self.sys_log.info(f"Disconnected NIC {nic}")
else: