From 2769b1bfb1b3c53b9500defe47edf32a9f97265b Mon Sep 17 00:00:00 2001 From: Christopher McCarthy Date: Tue, 1 Aug 2023 11:04:16 +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 b709fd0a..dfe54ded 100644 --- a/src/primaite/simulator/network/physical_layer.py +++ b/src/primaite/simulator/network/physical_layer.py @@ -58,11 +58,11 @@ class NIC(SimComponent): :param dns_servers: List of IP addresses of DNS servers used for name resolution. """ - ip_address: Union[IPv4Address] + ip_address: IPv4Address "The IP address assigned to the NIC for communication on an IP-based network." subnet_mask: str "The subnet mask assigned to the NIC." - gateway: Union[IPv4Address] + gateway: IPV4Address "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."