29 #ifndef __SERVICE_PLUGINS_INETWORK_H__ 30 #define __SERVICE_PLUGINS_INETWORK_H__ 92 [[nodiscard]]
virtual bool 93 hasInterface(
const std::string& interfaceName)
const = 0;
106 const std::vector<std::string>& interfaceCommands)
const = 0;
120 layerCommands)
const = 0;
INetwork & operator=(const INetwork &)=delete
virtual bool hasInterface(const std::string &interfaceName) const =0
Check if the network interface whose name is "interfaceName" exists.
virtual ~INetwork()=default
Configure the network (enable network interfaces, set IP addresses, add new network interfaces...
Definition: INetwork.h:62
Definition: IConfigData.h:67
virtual void applyInterfaceCommands(const std::vector< std::string > &interfaceCommands) const =0
Apply "interface commands" i.e network commands more or less related to setting up a network interfac...
virtual void applyLayerCommands(const std::vector< service::plugins::config::ConfigData::Network::LayerCommand > &layerCommands) const =0
Apply "layer commands" i.e commands that simply consist in writing a given value to a specific networ...