Apply suggestions from code review
This commit is contained in:
@@ -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."
|
||||||
|
|||||||
Reference in New Issue
Block a user