#1796: pre installing system software

This commit is contained in:
Czar.Echavez
2023-09-26 15:14:24 +01:00
parent 161d441ad6
commit c096d06bcd
5 changed files with 14 additions and 14 deletions

View File

@@ -25,6 +25,8 @@ from primaite.simulator.system.core.session_manager import SessionManager
from primaite.simulator.system.core.software_manager import SoftwareManager
from primaite.simulator.system.core.sys_log import SysLog
from primaite.simulator.system.processes.process import Process
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.service import Service
_LOGGER = getLogger(__name__)
@@ -937,6 +939,16 @@ class Node(SimComponent):
self.arp.nics = self.nics
self.session_manager.software_manager = self.software_manager
self._install_system_software()
def _install_system_software(self):
"""Install System Software - software that is usually provided with the OS."""
# DNS Client
self.software_manager.install(DNSClient)
# FTP
self.software_manager.install(FTPClient)
def describe_state(self) -> Dict:
"""
Produce a dictionary describing the current state of this object.