29 #ifndef __SERVICE_NETWORKSERVICE_H__ 30 #define __SERVICE_NETWORKSERVICE_H__ 165 [[nodiscard]]
int applyConfig(
const std::string& configFile)
const;
NetworkService(const NetworkServiceParams ¶ms)
Create a NetworkService object.
const plugins::config::IConfig & config
Definition: NetworkService.h:137
const plugins::network::INetwork & network
Definition: NetworkService.h:140
const plugins::logger::ILogger & logger
Definition: NetworkService.h:134
Print logs to help understanding what the service is doing.
Definition: ILogger.h:71
A data structure containing all input parameters expected by the construtor.
Definition: NetworkService.h:132
int applyConfig(const std::string &configFile) const
Apply the network configuration given in provided file.
A factory class to help creating rules thus hiding low level details to the core service.
Definition: IRuleFactory.h:56
const plugins::firewall::IRuleFactory & ruleFactory
Definition: NetworkService.h:143
Configure the network (enable network interfaces, set IP addresses, add new network interfaces...
Definition: INetwork.h:62
Load the configuration used by the service to set up the network.
Definition: IConfig.h:66
Main class that directs operations.
Definition: NetworkService.h:119
const NetworkServiceParams & m_params
Definition: NetworkService.h:168