networkservice
Classes | Public Attributes | List of all members
service::plugins::config::ConfigData::Network Struct Reference

A data structure containing network-related data. More...

#include <IConfigData.h>

Classes

struct  LayerCommand
 

Public Attributes

std::vector< std::string > interfaceNames
 
std::vector< std::string > interfaceCommands
 
std::vector< LayerCommandlayerCommands
 

Detailed Description

A data structure containing network-related data.

Note
std::map<path, value> is not used to store layerCommands because the elements are sorted based on the key. As we work with network commands, it is better to make sure they are applied in the order the user provided them. Another reason is that LayerCommand is far more readable than just std::map<std::string, std::string>.

Member Data Documentation

◆ interfaceCommands

std::vector<std::string> service::plugins::config::ConfigData::Network::interfaceCommands

The list of network commands to apply (E.g: "/sbin/ip addr ...")

◆ interfaceNames

std::vector<std::string> service::plugins::config::ConfigData::Network::interfaceNames

(Already existing) network interfaces you need to work with (E.g: eth0)

◆ layerCommands

std::vector<LayerCommand> service::plugins::config::ConfigData::Network::layerCommands

The list of layer commands to apply


The documentation for this struct was generated from the following file: