Change describe_state to use names instead of uuids

This commit is contained in:
Marek Wolan
2023-12-14 11:19:32 +00:00
parent e93fb85672
commit 1ec7df1170
5 changed files with 31 additions and 11 deletions

View File

@@ -30,6 +30,7 @@ class Switch(Node):
self.switch_ports = {i: SwitchPort() for i in range(1, self.num_ports + 1)}
for port_num, port in self.switch_ports.items():
port._connected_node = self
port._port_num_on_node = port_num
port.parent = self
port.port_num = port_num