From 5ee3eff0e92e0222c4677a46544d41b199efb620 Mon Sep 17 00:00:00 2001 From: Christopher McCarthy Date: Tue, 1 Aug 2023 11:14:36 +0000 Subject: [PATCH] Apply suggestions from code review --- src/primaite/simulator/network/physical_layer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/primaite/simulator/network/physical_layer.py b/src/primaite/simulator/network/physical_layer.py index dfe54ded..aab98dc0 100644 --- a/src/primaite/simulator/network/physical_layer.py +++ b/src/primaite/simulator/network/physical_layer.py @@ -66,9 +66,9 @@ class NIC(SimComponent): "The default gateway IP address for forwarding network traffic to other networks. Randomly generated upon creation." mac_address: str = generate_mac_address() "The MAC address of the NIC. Defaults to a randomly set MAC address." - speed: Optional[int] = 100 + speed: int = 100 "The speed of the NIC in Mbps. Default is 100 Mbps." - mtu: Optional[int] = 1500 + mtu: int = 1500 "The Maximum Transmission Unit (MTU) of the NIC in Bytes. Default is 1500 B" wake_on_lan: bool = False "Indicates if the NIC supports Wake-on-LAN functionality."