#Bug and test fixes

This commit is contained in:
Charlie Crane
2025-02-14 11:38:15 +00:00
parent 56699d2377
commit 7e138d1d61
7 changed files with 34 additions and 45 deletions

View File

@@ -49,7 +49,7 @@ class GigaSwitch(NetworkNode, discriminator="gigaswitch"):
if markdown:
table.set_style(MARKDOWN)
table.align = "l"
table.title = f"{self.hostname} Switch Ports"
table.title = f"{self.config.hostname} Switch Ports"
for port_num, port in self.network_interface.items():
table.add_row([port_num, port.mac_address, port.speed, "Enabled" if port.enabled else "Disabled"])
print(table)