Fix formatting with precommit
This commit is contained in:
@@ -57,8 +57,8 @@ class Switch(Node):
|
||||
"""
|
||||
state = super().describe_state()
|
||||
state["ports"] = {port_num: port.describe_state() for port_num, port in self.switch_ports.items()}
|
||||
state["num_ports"]= self.num_ports # redundant?
|
||||
state["mac_address_table"]= {mac: port for mac, port in self.mac_address_table.items()}
|
||||
state["num_ports"] = self.num_ports # redundant?
|
||||
state["mac_address_table"] = {mac: port for mac, port in self.mac_address_table.items()}
|
||||
return state
|
||||
|
||||
def _add_mac_table_entry(self, mac_address: str, switch_port: SwitchPort):
|
||||
|
||||
Reference in New Issue
Block a user