Ratan Gupta | 8c83493 | 2017-04-14 16:30:24 +0530 | [diff] [blame] | 1 | #pragma once |
| 2 | |
Ratan Gupta | 82549cc | 2017-04-21 08:45:23 +0530 | [diff] [blame] | 3 | #include "types.hpp" |
Ratan Gupta | 8804feb | 2017-05-25 10:49:57 +0530 | [diff] [blame] | 4 | #include "util.hpp" |
Ratan Gupta | 82549cc | 2017-04-21 08:45:23 +0530 | [diff] [blame] | 5 | #include "xyz/openbmc_project/Network/IP/Create/server.hpp" |
William A. Kennington III | 0850579 | 2019-01-30 16:00:04 -0800 | [diff] [blame] | 6 | #include "xyz/openbmc_project/Network/Neighbor/CreateStatic/server.hpp" |
Ratan Gupta | 8c83493 | 2017-04-14 16:30:24 +0530 | [diff] [blame] | 7 | |
Patrick Venture | 189d44e | 2018-07-09 12:30:59 -0700 | [diff] [blame] | 8 | #include <experimental/filesystem> |
Ratan Gupta | 8c83493 | 2017-04-14 16:30:24 +0530 | [diff] [blame] | 9 | #include <sdbusplus/bus.hpp> |
| 10 | #include <sdbusplus/server/object.hpp> |
Ratan Gupta | 8c83493 | 2017-04-14 16:30:24 +0530 | [diff] [blame] | 11 | #include <string> |
Patrick Venture | 189d44e | 2018-07-09 12:30:59 -0700 | [diff] [blame] | 12 | #include <xyz/openbmc_project/Collection/DeleteAll/server.hpp> |
| 13 | #include <xyz/openbmc_project/Network/EthernetInterface/server.hpp> |
| 14 | #include <xyz/openbmc_project/Network/MACAddress/server.hpp> |
Ratan Gupta | 8c83493 | 2017-04-14 16:30:24 +0530 | [diff] [blame] | 15 | |
| 16 | namespace phosphor |
| 17 | { |
| 18 | namespace network |
| 19 | { |
Ratan Gupta | 8c83493 | 2017-04-14 16:30:24 +0530 | [diff] [blame] | 20 | |
Gunnar Mills | 57d9c50 | 2018-09-14 14:42:34 -0500 | [diff] [blame] | 21 | using Ifaces = sdbusplus::server::object::object< |
| 22 | sdbusplus::xyz::openbmc_project::Network::server::EthernetInterface, |
| 23 | sdbusplus::xyz::openbmc_project::Network::server::MACAddress, |
| 24 | sdbusplus::xyz::openbmc_project::Network::IP::server::Create, |
William A. Kennington III | 0850579 | 2019-01-30 16:00:04 -0800 | [diff] [blame] | 25 | sdbusplus::xyz::openbmc_project::Network::Neighbor::server::CreateStatic, |
Gunnar Mills | 57d9c50 | 2018-09-14 14:42:34 -0500 | [diff] [blame] | 26 | sdbusplus::xyz::openbmc_project::Collection::server::DeleteAll>; |
Ratan Gupta | 8c83493 | 2017-04-14 16:30:24 +0530 | [diff] [blame] | 27 | |
Ratan Gupta | 82549cc | 2017-04-21 08:45:23 +0530 | [diff] [blame] | 28 | using IP = sdbusplus::xyz::openbmc_project::Network::server::IP; |
Ratan Gupta | 87c1398 | 2017-06-15 09:27:27 +0530 | [diff] [blame] | 29 | |
| 30 | using EthernetInterfaceIntf = |
| 31 | sdbusplus::xyz::openbmc_project::Network::server::EthernetInterface; |
Ratan Gupta | bd303b1 | 2017-08-18 17:10:07 +0530 | [diff] [blame] | 32 | using MacAddressIntf = |
| 33 | sdbusplus::xyz::openbmc_project::Network::server::MACAddress; |
Ratan Gupta | 87c1398 | 2017-06-15 09:27:27 +0530 | [diff] [blame] | 34 | |
Ratan Gupta | 497c0c9 | 2017-08-22 19:15:59 +0530 | [diff] [blame] | 35 | using ServerList = std::vector<std::string>; |
raviteja-b | ce37956 | 2019-03-28 05:59:36 -0500 | [diff] [blame] | 36 | using ObjectPath = sdbusplus::message::object_path; |
Ratan Gupta | 497c0c9 | 2017-08-22 19:15:59 +0530 | [diff] [blame] | 37 | |
Ratan Gupta | 5978dd1 | 2017-07-25 13:47:13 +0530 | [diff] [blame] | 38 | namespace fs = std::experimental::filesystem; |
| 39 | |
Ratan Gupta | 4f1c18b | 2017-05-25 12:59:35 +0530 | [diff] [blame] | 40 | class Manager; // forward declaration of network manager. |
Ratan Gupta | 8c83493 | 2017-04-14 16:30:24 +0530 | [diff] [blame] | 41 | |
Ratan Gupta | 47722dc | 2017-05-26 18:32:23 +0530 | [diff] [blame] | 42 | class TestEthernetInterface; |
| 43 | |
Ratan Gupta | 5978dd1 | 2017-07-25 13:47:13 +0530 | [diff] [blame] | 44 | class VlanInterface; |
| 45 | |
| 46 | class IPAddress; |
| 47 | |
William A. Kennington III | 0850579 | 2019-01-30 16:00:04 -0800 | [diff] [blame] | 48 | class Neighbor; |
| 49 | |
Ratan Gupta | 8c83493 | 2017-04-14 16:30:24 +0530 | [diff] [blame] | 50 | using LinkSpeed = uint16_t; |
| 51 | using DuplexMode = uint8_t; |
| 52 | using Autoneg = uint8_t; |
Ratan Gupta | 5978dd1 | 2017-07-25 13:47:13 +0530 | [diff] [blame] | 53 | using VlanId = uint32_t; |
| 54 | using InterfaceName = std::string; |
Ratan Gupta | 8c83493 | 2017-04-14 16:30:24 +0530 | [diff] [blame] | 55 | using InterfaceInfo = std::tuple<LinkSpeed, DuplexMode, Autoneg>; |
Ratan Gupta | 29b0e43 | 2017-05-25 12:51:40 +0530 | [diff] [blame] | 56 | using AddressMap = std::map<std::string, std::shared_ptr<IPAddress>>; |
William A. Kennington III | 0850579 | 2019-01-30 16:00:04 -0800 | [diff] [blame] | 57 | using NeighborMap = std::map<std::string, std::shared_ptr<Neighbor>>; |
Gunnar Mills | 57d9c50 | 2018-09-14 14:42:34 -0500 | [diff] [blame] | 58 | using VlanInterfaceMap = |
| 59 | std::map<InterfaceName, std::unique_ptr<VlanInterface>>; |
Ratan Gupta | 8c83493 | 2017-04-14 16:30:24 +0530 | [diff] [blame] | 60 | |
| 61 | /** @class EthernetInterface |
| 62 | * @brief OpenBMC Ethernet Interface implementation. |
| 63 | * @details A concrete implementation for the |
| 64 | * xyz.openbmc_project.Network.EthernetInterface DBus API. |
| 65 | */ |
Ratan Gupta | 82549cc | 2017-04-21 08:45:23 +0530 | [diff] [blame] | 66 | class EthernetInterface : public Ifaces |
Ratan Gupta | 8c83493 | 2017-04-14 16:30:24 +0530 | [diff] [blame] | 67 | { |
Gunnar Mills | 57d9c50 | 2018-09-14 14:42:34 -0500 | [diff] [blame] | 68 | public: |
| 69 | EthernetInterface() = delete; |
| 70 | EthernetInterface(const EthernetInterface&) = delete; |
| 71 | EthernetInterface& operator=(const EthernetInterface&) = delete; |
| 72 | EthernetInterface(EthernetInterface&&) = delete; |
| 73 | EthernetInterface& operator=(EthernetInterface&&) = delete; |
| 74 | virtual ~EthernetInterface() = default; |
Ratan Gupta | 8c83493 | 2017-04-14 16:30:24 +0530 | [diff] [blame] | 75 | |
Gunnar Mills | 57d9c50 | 2018-09-14 14:42:34 -0500 | [diff] [blame] | 76 | /** @brief Constructor to put object onto bus at a dbus path. |
| 77 | * @param[in] bus - Bus to attach to. |
| 78 | * @param[in] objPath - Path to attach at. |
| 79 | * @param[in] dhcpEnabled - is dhcp enabled(true/false). |
| 80 | * @param[in] parent - parent object. |
| 81 | * @param[in] emitSignal - true if the object added signal needs to be |
| 82 | * send. |
| 83 | */ |
| 84 | EthernetInterface(sdbusplus::bus::bus& bus, const std::string& objPath, |
| 85 | bool dhcpEnabled, Manager& parent, |
| 86 | bool emitSignal = true); |
Ratan Gupta | 82549cc | 2017-04-21 08:45:23 +0530 | [diff] [blame] | 87 | |
Gunnar Mills | 57d9c50 | 2018-09-14 14:42:34 -0500 | [diff] [blame] | 88 | /** @brief Function to create ipaddress dbus object. |
| 89 | * @param[in] addressType - Type of ip address. |
| 90 | * @param[in] ipaddress- IP address. |
| 91 | * @param[in] prefixLength - Length of prefix. |
| 92 | * @param[in] gateway - Gateway ip address. |
| 93 | */ |
Ratan Gupta | 82549cc | 2017-04-21 08:45:23 +0530 | [diff] [blame] | 94 | |
raviteja-b | ce37956 | 2019-03-28 05:59:36 -0500 | [diff] [blame] | 95 | ObjectPath iP(IP::Protocol addressType, std::string ipaddress, |
| 96 | uint8_t prefixLength, std::string gateway) override; |
Ratan Gupta | 8c83493 | 2017-04-14 16:30:24 +0530 | [diff] [blame] | 97 | |
William A. Kennington III | 0850579 | 2019-01-30 16:00:04 -0800 | [diff] [blame] | 98 | /** @brief Function to create static neighbor dbus object. |
| 99 | * @param[in] ipAddress - IP address. |
| 100 | * @param[in] macAddress - Low level MAC address. |
| 101 | */ |
| 102 | ObjectPath neighbor(std::string iPAddress, std::string mACAddress) override; |
| 103 | |
Gunnar Mills | 57d9c50 | 2018-09-14 14:42:34 -0500 | [diff] [blame] | 104 | /* @brief delete the dbus object of the given ipaddress. |
| 105 | * @param[in] ipaddress - IP address. |
| 106 | */ |
| 107 | void deleteObject(const std::string& ipaddress); |
Ratan Gupta | 8c83493 | 2017-04-14 16:30:24 +0530 | [diff] [blame] | 108 | |
William A. Kennington III | 0850579 | 2019-01-30 16:00:04 -0800 | [diff] [blame] | 109 | /* @brief delete the dbus object of the given ipaddress. |
| 110 | * @param[in] ipaddress - IP address. |
| 111 | */ |
| 112 | void deleteStaticNeighborObject(const std::string& ipAddress); |
| 113 | |
Gunnar Mills | 57d9c50 | 2018-09-14 14:42:34 -0500 | [diff] [blame] | 114 | /* @brief delete the vlan dbus object of the given interface. |
| 115 | * Also deletes the device file and the network file. |
| 116 | * @param[in] interface - VLAN Interface. |
| 117 | */ |
| 118 | void deleteVLANObject(const std::string& interface); |
Ratan Gupta | bc88629 | 2017-07-25 18:29:57 +0530 | [diff] [blame] | 119 | |
Gunnar Mills | 57d9c50 | 2018-09-14 14:42:34 -0500 | [diff] [blame] | 120 | /* @brief creates the dbus object(IPaddres) given in the address list. |
| 121 | * @param[in] addrs - address list for which dbus objects needs |
| 122 | * to create. |
| 123 | */ |
| 124 | void createIPAddressObjects(); |
Ratan Gupta | 29b0e43 | 2017-05-25 12:51:40 +0530 | [diff] [blame] | 125 | |
William A. Kennington III | 0850579 | 2019-01-30 16:00:04 -0800 | [diff] [blame] | 126 | /* @brief creates the dbus object(Neighbor) given in the neighbor list. |
| 127 | */ |
| 128 | void createStaticNeighborObjects(); |
| 129 | |
Gunnar Mills | 57d9c50 | 2018-09-14 14:42:34 -0500 | [diff] [blame] | 130 | /* @brief Gets all the ip addresses. |
| 131 | * @returns the list of ipaddress. |
| 132 | */ |
| 133 | const AddressMap& getAddresses() const |
| 134 | { |
| 135 | return addrs; |
| 136 | } |
Ratan Gupta | 8c83493 | 2017-04-14 16:30:24 +0530 | [diff] [blame] | 137 | |
William A. Kennington III | 0850579 | 2019-01-30 16:00:04 -0800 | [diff] [blame] | 138 | /* @brief Gets all the static neighbor entries. |
| 139 | * @returns Static neighbor map. |
| 140 | */ |
| 141 | const NeighborMap& getStaticNeighbors() const |
| 142 | { |
| 143 | return staticNeighbors; |
| 144 | } |
| 145 | |
Gunnar Mills | 57d9c50 | 2018-09-14 14:42:34 -0500 | [diff] [blame] | 146 | /** Set value of DHCPEnabled */ |
| 147 | bool dHCPEnabled(bool value) override; |
Ratan Gupta | 87c1398 | 2017-06-15 09:27:27 +0530 | [diff] [blame] | 148 | |
Gunnar Mills | 57d9c50 | 2018-09-14 14:42:34 -0500 | [diff] [blame] | 149 | /** @brief sets the MAC address. |
| 150 | * @param[in] value - MAC address which needs to be set on the system. |
| 151 | * @returns macAddress of the interface or throws an error. |
| 152 | */ |
| 153 | std::string mACAddress(std::string value) override; |
Ratan Gupta | bd303b1 | 2017-08-18 17:10:07 +0530 | [diff] [blame] | 154 | |
Gunnar Mills | 57d9c50 | 2018-09-14 14:42:34 -0500 | [diff] [blame] | 155 | /** @brief sets the NTP servers. |
| 156 | * @param[in] value - vector of NTP servers. |
| 157 | */ |
| 158 | ServerList nTPServers(ServerList value) override; |
Ratan Gupta | 497c0c9 | 2017-08-22 19:15:59 +0530 | [diff] [blame] | 159 | |
Gunnar Mills | 57d9c50 | 2018-09-14 14:42:34 -0500 | [diff] [blame] | 160 | /** @brief sets the DNS/nameservers. |
| 161 | * @param[in] value - vector of DNS servers. |
| 162 | */ |
| 163 | ServerList nameservers(ServerList value) override; |
Ratan Gupta | 6dec390f | 2017-08-20 15:28:12 +0530 | [diff] [blame] | 164 | |
Gunnar Mills | 57d9c50 | 2018-09-14 14:42:34 -0500 | [diff] [blame] | 165 | /** @brief create Vlan interface. |
| 166 | * @param[in] id- VLAN identifier. |
| 167 | */ |
William A. Kennington III | f4b4ff8 | 2019-04-09 19:06:52 -0700 | [diff] [blame] | 168 | ObjectPath createVLAN(VlanId id); |
Ratan Gupta | 5978dd1 | 2017-07-25 13:47:13 +0530 | [diff] [blame] | 169 | |
Gunnar Mills | 57d9c50 | 2018-09-14 14:42:34 -0500 | [diff] [blame] | 170 | /** @brief load the vlan info from the system |
| 171 | * and creates the ip address dbus objects. |
| 172 | * @param[in] vlanID- VLAN identifier. |
| 173 | */ |
| 174 | void loadVLAN(VlanId vlanID); |
Ratan Gupta | 92bc2fe | 2017-07-26 22:40:21 +0530 | [diff] [blame] | 175 | |
Gunnar Mills | 57d9c50 | 2018-09-14 14:42:34 -0500 | [diff] [blame] | 176 | /** @brief write the network conf file with the in-memory objects. |
| 177 | */ |
| 178 | void writeConfigurationFile(); |
Ratan Gupta | 2b10653 | 2017-07-25 16:05:02 +0530 | [diff] [blame] | 179 | |
Gunnar Mills | 57d9c50 | 2018-09-14 14:42:34 -0500 | [diff] [blame] | 180 | /** @brief delete all dbus objects. |
| 181 | */ |
| 182 | void deleteAll(); |
Ratan Gupta | e9c9b81 | 2017-09-22 17:15:37 +0530 | [diff] [blame] | 183 | |
Gunnar Mills | 57d9c50 | 2018-09-14 14:42:34 -0500 | [diff] [blame] | 184 | using EthernetInterfaceIntf::dHCPEnabled; |
| 185 | using EthernetInterfaceIntf::interfaceName; |
| 186 | using MacAddressIntf::mACAddress; |
Ratan Gupta | 5978dd1 | 2017-07-25 13:47:13 +0530 | [diff] [blame] | 187 | |
Gunnar Mills | 57d9c50 | 2018-09-14 14:42:34 -0500 | [diff] [blame] | 188 | /** @brief Absolute path of the resolv conf file */ |
| 189 | static constexpr auto resolvConfFile = "/etc/resolv.conf"; |
Ratan Gupta | 6dec390f | 2017-08-20 15:28:12 +0530 | [diff] [blame] | 190 | |
Gunnar Mills | 57d9c50 | 2018-09-14 14:42:34 -0500 | [diff] [blame] | 191 | protected: |
| 192 | /** @brief get the info of the ethernet interface. |
| 193 | * @return tuple having the link speed,autonegotiation,duplexmode . |
| 194 | */ |
| 195 | InterfaceInfo getInterfaceInfo() const; |
Ratan Gupta | 8c83493 | 2017-04-14 16:30:24 +0530 | [diff] [blame] | 196 | |
Gunnar Mills | 57d9c50 | 2018-09-14 14:42:34 -0500 | [diff] [blame] | 197 | /* @brief delete the vlan interface from system. |
| 198 | * @param[in] interface - vlan Interface. |
| 199 | */ |
| 200 | void deleteVLANFromSystem(const std::string& interface); |
Ratan Gupta | e9c9b81 | 2017-09-22 17:15:37 +0530 | [diff] [blame] | 201 | |
Gunnar Mills | 57d9c50 | 2018-09-14 14:42:34 -0500 | [diff] [blame] | 202 | /** @brief get the mac address of the interface. |
| 203 | * @param[in] interfaceName - Network interface name. |
| 204 | * @return macaddress on success |
| 205 | */ |
Ratan Gupta | 8c83493 | 2017-04-14 16:30:24 +0530 | [diff] [blame] | 206 | |
Gunnar Mills | 57d9c50 | 2018-09-14 14:42:34 -0500 | [diff] [blame] | 207 | std::string getMACAddress(const std::string& interfaceName) const; |
Ratan Gupta | 8c83493 | 2017-04-14 16:30:24 +0530 | [diff] [blame] | 208 | |
Gunnar Mills | 57d9c50 | 2018-09-14 14:42:34 -0500 | [diff] [blame] | 209 | /** @brief construct the ip address dbus object path. |
| 210 | * @param[in] addressType - Type of ip address. |
| 211 | * @param[in] ipaddress - IP address. |
| 212 | * @param[in] prefixLength - Length of prefix. |
| 213 | * @param[in] gateway - Gateway address. |
Ratan Gupta | 65e5abe | 2017-05-23 13:20:44 +0530 | [diff] [blame] | 214 | |
Gunnar Mills | 57d9c50 | 2018-09-14 14:42:34 -0500 | [diff] [blame] | 215 | * @return path of the address object. |
| 216 | */ |
Ratan Gupta | 82549cc | 2017-04-21 08:45:23 +0530 | [diff] [blame] | 217 | |
Gunnar Mills | 57d9c50 | 2018-09-14 14:42:34 -0500 | [diff] [blame] | 218 | std::string generateObjectPath(IP::Protocol addressType, |
| 219 | const std::string& ipaddress, |
| 220 | uint8_t prefixLength, |
| 221 | const std::string& gateway) const; |
Ratan Gupta | 82549cc | 2017-04-21 08:45:23 +0530 | [diff] [blame] | 222 | |
William A. Kennington III | 0850579 | 2019-01-30 16:00:04 -0800 | [diff] [blame] | 223 | std::string |
| 224 | generateStaticNeighborObjectPath(const std::string& iPAddress, |
| 225 | const std::string& mACAddress) const; |
| 226 | |
Gunnar Mills | 57d9c50 | 2018-09-14 14:42:34 -0500 | [diff] [blame] | 227 | /** @brief generates the id by doing hash of ipaddress, |
| 228 | * prefixlength and the gateway. |
| 229 | * @param[in] ipaddress - IP address. |
| 230 | * @param[in] prefixLength - Length of prefix. |
| 231 | * @param[in] gateway - Gateway address. |
| 232 | * @return hash string. |
| 233 | */ |
Ratan Gupta | 82549cc | 2017-04-21 08:45:23 +0530 | [diff] [blame] | 234 | |
Gunnar Mills | 57d9c50 | 2018-09-14 14:42:34 -0500 | [diff] [blame] | 235 | static std::string generateId(const std::string& ipaddress, |
| 236 | uint8_t prefixLength, |
| 237 | const std::string& gateway); |
Ratan Gupta | 82549cc | 2017-04-21 08:45:23 +0530 | [diff] [blame] | 238 | |
William A. Kennington III | 0850579 | 2019-01-30 16:00:04 -0800 | [diff] [blame] | 239 | /** @brief generates the id by doing hash of ipaddress |
| 240 | * and the mac address. |
| 241 | * @param[in] iPAddress - IP address. |
| 242 | * @param[in] mACAddress - Gateway address. |
| 243 | * @return hash string. |
| 244 | */ |
| 245 | static std::string generateNeighborId(const std::string& iPAddress, |
| 246 | const std::string& mACAddress); |
| 247 | |
Gunnar Mills | 57d9c50 | 2018-09-14 14:42:34 -0500 | [diff] [blame] | 248 | /** @brief write the dhcp section **/ |
| 249 | void writeDHCPSection(std::fstream& stream); |
Ratan Gupta | 2b10653 | 2017-07-25 16:05:02 +0530 | [diff] [blame] | 250 | |
Gunnar Mills | 57d9c50 | 2018-09-14 14:42:34 -0500 | [diff] [blame] | 251 | /** @brief get the NTP server list from the network conf |
| 252 | * |
| 253 | */ |
| 254 | ServerList getNTPServersFromConf(); |
Ratan Gupta | 497c0c9 | 2017-08-22 19:15:59 +0530 | [diff] [blame] | 255 | |
Gunnar Mills | 57d9c50 | 2018-09-14 14:42:34 -0500 | [diff] [blame] | 256 | /** @brief write the DNS entries to resolver file. |
| 257 | * @param[in] dnsList - DNS server list which needs to be written. |
| 258 | * @param[in] file - File to write the name server entries to. |
| 259 | */ |
| 260 | void writeDNSEntries(const ServerList& dnsList, const std::string& file); |
Ratan Gupta | 6dec390f | 2017-08-20 15:28:12 +0530 | [diff] [blame] | 261 | |
Gunnar Mills | 57d9c50 | 2018-09-14 14:42:34 -0500 | [diff] [blame] | 262 | /** @brief get the name server details from the network conf |
| 263 | * |
| 264 | */ |
| 265 | ServerList getNameServerFromConf(); |
Ratan Gupta | 6dec390f | 2017-08-20 15:28:12 +0530 | [diff] [blame] | 266 | |
Gunnar Mills | 57d9c50 | 2018-09-14 14:42:34 -0500 | [diff] [blame] | 267 | /** @brief Persistent sdbusplus DBus bus connection. */ |
| 268 | sdbusplus::bus::bus& bus; |
Ratan Gupta | 82549cc | 2017-04-21 08:45:23 +0530 | [diff] [blame] | 269 | |
Gunnar Mills | 57d9c50 | 2018-09-14 14:42:34 -0500 | [diff] [blame] | 270 | /** @brief Network Manager object. */ |
| 271 | Manager& manager; |
Ratan Gupta | 4f1c18b | 2017-05-25 12:59:35 +0530 | [diff] [blame] | 272 | |
Gunnar Mills | 57d9c50 | 2018-09-14 14:42:34 -0500 | [diff] [blame] | 273 | /** @brief Persistent map of IPAddress dbus objects and their names */ |
| 274 | AddressMap addrs; |
Ratan Gupta | 82549cc | 2017-04-21 08:45:23 +0530 | [diff] [blame] | 275 | |
William A. Kennington III | 0850579 | 2019-01-30 16:00:04 -0800 | [diff] [blame] | 276 | /** @brief Persistent map of Neighbor dbus objects and their names */ |
| 277 | NeighborMap staticNeighbors; |
| 278 | |
Gunnar Mills | 57d9c50 | 2018-09-14 14:42:34 -0500 | [diff] [blame] | 279 | /** @brief Persistent map of VLAN interface dbus objects and their names */ |
| 280 | VlanInterfaceMap vlanInterfaces; |
Ratan Gupta | 5978dd1 | 2017-07-25 13:47:13 +0530 | [diff] [blame] | 281 | |
Gunnar Mills | 57d9c50 | 2018-09-14 14:42:34 -0500 | [diff] [blame] | 282 | /** @brief Dbus object path */ |
| 283 | std::string objPath; |
Ratan Gupta | 47722dc | 2017-05-26 18:32:23 +0530 | [diff] [blame] | 284 | |
Gunnar Mills | 57d9c50 | 2018-09-14 14:42:34 -0500 | [diff] [blame] | 285 | friend class TestEthernetInterface; |
Ratan Gupta | 8c83493 | 2017-04-14 16:30:24 +0530 | [diff] [blame] | 286 | }; |
| 287 | |
| 288 | } // namespace network |
| 289 | } // namespace phosphor |