Merge remote-tracking branch 'origin/feature/1789-add-convenience-methods-to-network-object' into feature/1801-Database

This commit is contained in:
Marek Wolan
2023-08-29 13:22:14 +01:00
4 changed files with 44 additions and 30 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: