29 #ifndef __PLUGINS_NETWORK_NETWORK_H__ 30 #define __PLUGINS_NETWORK_NETWORK_H__ 92 [[nodiscard]]
bool hasInterface(
const std::string& interfaceName)
const override;
100 const std::vector<std::string>& interfaceCommands)
const override;
110 layerCommands)
const override;
Network & operator=(const Network &)=delete
A helper class to write a given value to a specified output stream. This class is a high level interf...
Definition: IWriter.h:54
Configure the network (enable network interfaces, set IP addresses, add new network interfaces...
Definition: Network.h:59
A helper class to execute shell commands securely. This class is a high level interface added to ease...
Definition: IExecutor.h:51
bool hasInterface(const std::string &interfaceName) const override
void applyInterfaceCommands(const std::vector< std::string > &interfaceCommands) const override
Apply "interface commands".
Configure the network (enable network interfaces, set IP addresses, add new network interfaces...
Definition: INetwork.h:62
Definition: IConfigData.h:67
std::unique_ptr< Internal > m_internal
Definition: Network.h:113
void applyLayerCommands(const std::vector< service::plugins::config::ConfigData::Network::LayerCommand > &layerCommands) const override
Apply "layer commands".
Network(const utils::command::IExecutor &executor, const utils::file::IWriter &writer)