#1943: apply suggestions from PR + fixing FTP bug + elaborating

This commit is contained in:
Czar.Echavez
2023-10-09 13:25:12 +01:00
parent 853bb9eecc
commit 318539fd8f
10 changed files with 24 additions and 12 deletions

View File

@@ -2,7 +2,6 @@ from primaite.simulator.network.hardware.base import NIC, Node
from primaite.simulator.system.applications.web_browser import WebBrowser
from primaite.simulator.system.services.dns.dns_client import DNSClient
from primaite.simulator.system.services.ftp.ftp_client import FTPClient
from primaite.simulator.system.services.ftp.ftp_server import FTPServer
class Computer(Node):
@@ -49,7 +48,6 @@ class Computer(Node):
# FTP
self.software_manager.install(FTPClient)
self.software_manager.install(FTPServer)
# Web Browser
self.software_manager.install(WebBrowser)

View File

@@ -596,8 +596,6 @@ class Router(Node):
self.arp.nics = self.nics
self.icmp.arp = self.arp
self._install_system_software()
def _get_port_of_nic(self, target_nic: NIC) -> Optional[int]:
"""
Retrieve the port number for a given NIC.

View File

@@ -34,8 +34,6 @@ class Switch(Node):
port.parent = self
port.port_num = port_num
self._install_system_software()
def show(self, markdown: bool = False):
"""
Prints a table of the SwitchPorts on the Switch.