Apply suggestions from code review

This commit is contained in:
Christopher McCarthy
2023-08-01 11:04:16 +00:00
parent 8785089a1c
commit 2769b1bfb1

View File

@@ -58,11 +58,11 @@ class NIC(SimComponent):
:param dns_servers: List of IP addresses of DNS servers used for name resolution. :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." "The IP address assigned to the NIC for communication on an IP-based network."
subnet_mask: str subnet_mask: str
"The subnet mask assigned to the NIC." "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." "The default gateway IP address for forwarding network traffic to other networks. Randomly generated upon creation."
mac_address: str = generate_mac_address() mac_address: str = generate_mac_address()
"The MAC address of the NIC. Defaults to a randomly set MAC address." "The MAC address of the NIC. Defaults to a randomly set MAC address."