blob: 82569547873313570427fec704e8d80bdd4fd1d4 [file] [log] [blame]
Ratan Gupta8c834932017-04-14 16:30:24 +05301#pragma once
2
Ratan Gupta82549cc2017-04-21 08:45:23 +05303#include "types.hpp"
Ratan Gupta8804feb2017-05-25 10:49:57 +05304#include "util.hpp"
Ratan Gupta82549cc2017-04-21 08:45:23 +05305#include "xyz/openbmc_project/Network/IP/Create/server.hpp"
William A. Kennington III08505792019-01-30 16:00:04 -08006#include "xyz/openbmc_project/Network/Neighbor/CreateStatic/server.hpp"
Ratan Gupta8c834932017-04-14 16:30:24 +05307
Manojkiran Edaa879baa2020-06-13 14:39:08 +05308#include <filesystem>
Ratan Gupta8c834932017-04-14 16:30:24 +05309#include <sdbusplus/bus.hpp>
10#include <sdbusplus/server/object.hpp>
Ratan Gupta8c834932017-04-14 16:30:24 +053011#include <string>
Patrick Venture189d44e2018-07-09 12:30:59 -070012#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 Gupta8c834932017-04-14 16:30:24 +053015
16namespace phosphor
17{
18namespace network
19{
Ratan Gupta8c834932017-04-14 16:30:24 +053020
Gunnar Mills57d9c502018-09-14 14:42:34 -050021using 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 III08505792019-01-30 16:00:04 -080025 sdbusplus::xyz::openbmc_project::Network::Neighbor::server::CreateStatic,
Gunnar Mills57d9c502018-09-14 14:42:34 -050026 sdbusplus::xyz::openbmc_project::Collection::server::DeleteAll>;
Ratan Gupta8c834932017-04-14 16:30:24 +053027
Ratan Gupta82549cc2017-04-21 08:45:23 +053028using IP = sdbusplus::xyz::openbmc_project::Network::server::IP;
Ratan Gupta87c13982017-06-15 09:27:27 +053029
30using EthernetInterfaceIntf =
31 sdbusplus::xyz::openbmc_project::Network::server::EthernetInterface;
Ratan Guptabd303b12017-08-18 17:10:07 +053032using MacAddressIntf =
33 sdbusplus::xyz::openbmc_project::Network::server::MACAddress;
Ratan Gupta87c13982017-06-15 09:27:27 +053034
Ratan Gupta497c0c92017-08-22 19:15:59 +053035using ServerList = std::vector<std::string>;
raviteja-bce379562019-03-28 05:59:36 -050036using ObjectPath = sdbusplus::message::object_path;
Ratan Gupta497c0c92017-08-22 19:15:59 +053037
Manojkiran Edaa879baa2020-06-13 14:39:08 +053038namespace fs = std::filesystem;
Ratan Gupta5978dd12017-07-25 13:47:13 +053039
Ratan Gupta4f1c18b2017-05-25 12:59:35 +053040class Manager; // forward declaration of network manager.
Ratan Gupta8c834932017-04-14 16:30:24 +053041
Ratan Gupta47722dc2017-05-26 18:32:23 +053042class TestEthernetInterface;
43
Ratan Gupta5978dd12017-07-25 13:47:13 +053044class VlanInterface;
45
46class IPAddress;
47
William A. Kennington III08505792019-01-30 16:00:04 -080048class Neighbor;
49
Ratan Gupta8c834932017-04-14 16:30:24 +053050using LinkSpeed = uint16_t;
51using DuplexMode = uint8_t;
52using Autoneg = uint8_t;
Johnathan Manteyfaa72e52020-01-08 10:38:58 -080053using LinkUp = bool;
Johnathan Manteyd0679f92019-10-29 16:20:28 -070054using NICEnabled = bool;
Ratan Gupta5978dd12017-07-25 13:47:13 +053055using VlanId = uint32_t;
56using InterfaceName = std::string;
Johnathan Manteyd0679f92019-10-29 16:20:28 -070057using InterfaceInfo =
58 std::tuple<LinkSpeed, DuplexMode, Autoneg, LinkUp, NICEnabled>;
Ratan Gupta29b0e432017-05-25 12:51:40 +053059using AddressMap = std::map<std::string, std::shared_ptr<IPAddress>>;
William A. Kennington III08505792019-01-30 16:00:04 -080060using NeighborMap = std::map<std::string, std::shared_ptr<Neighbor>>;
Gunnar Mills57d9c502018-09-14 14:42:34 -050061using VlanInterfaceMap =
62 std::map<InterfaceName, std::unique_ptr<VlanInterface>>;
Ratan Gupta8c834932017-04-14 16:30:24 +053063
64/** @class EthernetInterface
65 * @brief OpenBMC Ethernet Interface implementation.
66 * @details A concrete implementation for the
67 * xyz.openbmc_project.Network.EthernetInterface DBus API.
68 */
Ratan Gupta82549cc2017-04-21 08:45:23 +053069class EthernetInterface : public Ifaces
Ratan Gupta8c834932017-04-14 16:30:24 +053070{
Gunnar Mills57d9c502018-09-14 14:42:34 -050071 public:
72 EthernetInterface() = delete;
73 EthernetInterface(const EthernetInterface&) = delete;
74 EthernetInterface& operator=(const EthernetInterface&) = delete;
75 EthernetInterface(EthernetInterface&&) = delete;
76 EthernetInterface& operator=(EthernetInterface&&) = delete;
77 virtual ~EthernetInterface() = default;
Ratan Gupta8c834932017-04-14 16:30:24 +053078
Gunnar Mills57d9c502018-09-14 14:42:34 -050079 /** @brief Constructor to put object onto bus at a dbus path.
80 * @param[in] bus - Bus to attach to.
81 * @param[in] objPath - Path to attach at.
82 * @param[in] dhcpEnabled - is dhcp enabled(true/false).
83 * @param[in] parent - parent object.
84 * @param[in] emitSignal - true if the object added signal needs to be
85 * send.
William A. Kennington III26275a32021-07-13 20:32:42 -070086 * @param[in] enabled - Override the lookup of nicEnabled
Gunnar Mills57d9c502018-09-14 14:42:34 -050087 */
88 EthernetInterface(sdbusplus::bus::bus& bus, const std::string& objPath,
Johnathan Mantey817012a2020-01-30 15:07:39 -080089 DHCPConf dhcpEnabled, Manager& parent,
William A. Kennington III26275a32021-07-13 20:32:42 -070090 bool emitSignal = true,
91 std::optional<bool> enabled = std::nullopt);
Ratan Gupta82549cc2017-04-21 08:45:23 +053092
Manojkiran Edaacd6dd52019-10-15 15:00:51 +053093 /** @brief Function used to load the nameservers.
94 */
95 virtual void loadNameServers();
96
Patrick Williams6aef7692021-05-01 06:39:41 -050097 /** @brief Function to create ipAddress dbus object.
Gunnar Mills57d9c502018-09-14 14:42:34 -050098 * @param[in] addressType - Type of ip address.
Patrick Williams6aef7692021-05-01 06:39:41 -050099 * @param[in] ipAddress- IP address.
Gunnar Mills57d9c502018-09-14 14:42:34 -0500100 * @param[in] prefixLength - Length of prefix.
101 * @param[in] gateway - Gateway ip address.
102 */
Ratan Gupta82549cc2017-04-21 08:45:23 +0530103
Patrick Williams6aef7692021-05-01 06:39:41 -0500104 ObjectPath ip(IP::Protocol addressType, std::string ipAddress,
raviteja-bce379562019-03-28 05:59:36 -0500105 uint8_t prefixLength, std::string gateway) override;
Ratan Gupta8c834932017-04-14 16:30:24 +0530106
William A. Kennington III08505792019-01-30 16:00:04 -0800107 /** @brief Function to create static neighbor dbus object.
108 * @param[in] ipAddress - IP address.
109 * @param[in] macAddress - Low level MAC address.
110 */
Patrick Williams6aef7692021-05-01 06:39:41 -0500111 ObjectPath neighbor(std::string ipAddress, std::string macAddress) override;
William A. Kennington III08505792019-01-30 16:00:04 -0800112
Patrick Williams6aef7692021-05-01 06:39:41 -0500113 /* @brief delete the dbus object of the given ipAddress.
114 * @param[in] ipAddress - IP address.
Gunnar Mills57d9c502018-09-14 14:42:34 -0500115 */
Patrick Williams6aef7692021-05-01 06:39:41 -0500116 void deleteObject(const std::string& ipAddress);
Ratan Gupta8c834932017-04-14 16:30:24 +0530117
Patrick Williams6aef7692021-05-01 06:39:41 -0500118 /* @brief delete the dbus object of the given ipAddress.
119 * @param[in] ipAddress - IP address.
William A. Kennington III08505792019-01-30 16:00:04 -0800120 */
121 void deleteStaticNeighborObject(const std::string& ipAddress);
122
Gunnar Mills57d9c502018-09-14 14:42:34 -0500123 /* @brief delete the vlan dbus object of the given interface.
124 * Also deletes the device file and the network file.
125 * @param[in] interface - VLAN Interface.
126 */
127 void deleteVLANObject(const std::string& interface);
Ratan Guptabc886292017-07-25 18:29:57 +0530128
Gunnar Mills57d9c502018-09-14 14:42:34 -0500129 /* @brief creates the dbus object(IPaddres) given in the address list.
130 * @param[in] addrs - address list for which dbus objects needs
131 * to create.
132 */
133 void createIPAddressObjects();
Ratan Gupta29b0e432017-05-25 12:51:40 +0530134
William A. Kennington III08505792019-01-30 16:00:04 -0800135 /* @brief creates the dbus object(Neighbor) given in the neighbor list.
136 */
137 void createStaticNeighborObjects();
138
William A. Kennington IIId7946a72019-04-19 14:24:09 -0700139 /* @brief Gets the index of the interface on the system
140 */
141 unsigned ifIndex() const;
142
Gunnar Mills57d9c502018-09-14 14:42:34 -0500143 /* @brief Gets all the ip addresses.
Patrick Williams6aef7692021-05-01 06:39:41 -0500144 * @returns the list of ipAddress.
Gunnar Mills57d9c502018-09-14 14:42:34 -0500145 */
146 const AddressMap& getAddresses() const
147 {
148 return addrs;
149 }
Ratan Gupta8c834932017-04-14 16:30:24 +0530150
William A. Kennington III08505792019-01-30 16:00:04 -0800151 /* @brief Gets all the static neighbor entries.
152 * @returns Static neighbor map.
153 */
154 const NeighborMap& getStaticNeighbors() const
155 {
156 return staticNeighbors;
157 }
158
Gunnar Mills57d9c502018-09-14 14:42:34 -0500159 /** Set value of DHCPEnabled */
Patrick Williams6aef7692021-05-01 06:39:41 -0500160 DHCPConf dhcpEnabled(DHCPConf value) override;
Johnathan Mantey817012a2020-01-30 15:07:39 -0800161
162 /** @brief Selectively disables DHCP
163 * @param[in] protocol - The IPv4 or IPv6 protocol to return to static
164 * addressing mode
165 */
166 void disableDHCP(IP::Protocol protocol);
Ratan Gupta87c13982017-06-15 09:27:27 +0530167
Johnathan Manteyfaa72e52020-01-08 10:38:58 -0800168 /** Retrieve Link State */
169 bool linkUp() const override;
170
Johnathan Manteyd0679f92019-10-29 16:20:28 -0700171 /** Set value of NICEnabled */
Patrick Williams6aef7692021-05-01 06:39:41 -0500172 bool nicEnabled(bool value) override;
Johnathan Manteyd0679f92019-10-29 16:20:28 -0700173
Gunnar Mills57d9c502018-09-14 14:42:34 -0500174 /** @brief sets the MAC address.
175 * @param[in] value - MAC address which needs to be set on the system.
176 * @returns macAddress of the interface or throws an error.
177 */
Patrick Williams6aef7692021-05-01 06:39:41 -0500178 std::string macAddress(std::string value) override;
Ratan Guptabd303b12017-08-18 17:10:07 +0530179
Johnathan Mantey5b023f52019-06-24 16:06:37 -0700180 /** @brief get the IPv6AcceptRA flag from the network configuration file
181 *
182 */
183 bool getIPv6AcceptRAFromConf();
184
185 /** @brief check conf file for Router Advertisements
186 *
187 */
Patrick Williams6aef7692021-05-01 06:39:41 -0500188 bool ipv6AcceptRA(bool value) override;
Johnathan Mantey5b023f52019-06-24 16:06:37 -0700189
Gunnar Mills57d9c502018-09-14 14:42:34 -0500190 /** @brief sets the NTP servers.
191 * @param[in] value - vector of NTP servers.
192 */
Patrick Williams6aef7692021-05-01 06:39:41 -0500193 ServerList ntpServers(ServerList value) override;
Ratan Gupta497c0c92017-08-22 19:15:59 +0530194
Gunnar Mills57d9c502018-09-14 14:42:34 -0500195 /** @brief sets the DNS/nameservers.
196 * @param[in] value - vector of DNS servers.
197 */
198 ServerList nameservers(ServerList value) override;
Ratan Gupta6dec3902017-08-20 15:28:12 +0530199
Manojkiran Edaacd6dd52019-10-15 15:00:51 +0530200 /** @brief sets the Static DNS/nameservers.
201 * @param[in] value - vector of DNS servers.
202 */
203
204 ServerList staticNameServers(ServerList value) override;
205
Gunnar Mills57d9c502018-09-14 14:42:34 -0500206 /** @brief create Vlan interface.
207 * @param[in] id- VLAN identifier.
208 */
William A. Kennington IIIf4b4ff82019-04-09 19:06:52 -0700209 ObjectPath createVLAN(VlanId id);
Ratan Gupta5978dd12017-07-25 13:47:13 +0530210
Gunnar Mills57d9c502018-09-14 14:42:34 -0500211 /** @brief load the vlan info from the system
212 * and creates the ip address dbus objects.
213 * @param[in] vlanID- VLAN identifier.
214 */
215 void loadVLAN(VlanId vlanID);
Ratan Gupta92bc2fe2017-07-26 22:40:21 +0530216
Gunnar Mills57d9c502018-09-14 14:42:34 -0500217 /** @brief write the network conf file with the in-memory objects.
218 */
219 void writeConfigurationFile();
Ratan Gupta2b106532017-07-25 16:05:02 +0530220
Gunnar Mills57d9c502018-09-14 14:42:34 -0500221 /** @brief delete all dbus objects.
222 */
223 void deleteAll();
Ratan Guptae9c9b812017-09-22 17:15:37 +0530224
Ravi Tejaa5a09442020-07-17 00:57:33 -0500225 /** @brief set the default v4 gateway of the interface.
226 * @param[in] gateway - default v4 gateway of the interface.
227 */
228 std::string defaultGateway(std::string gateway) override;
229
230 /** @brief set the default v6 gateway of the interface.
231 * @param[in] gateway - default v6 gateway of the interface.
232 */
233 std::string defaultGateway6(std::string gateway) override;
234
Patrick Williams6aef7692021-05-01 06:39:41 -0500235 using EthernetInterfaceIntf::dhcpEnabled;
Gunnar Mills57d9c502018-09-14 14:42:34 -0500236 using EthernetInterfaceIntf::interfaceName;
Johnathan Manteyfaa72e52020-01-08 10:38:58 -0800237 using EthernetInterfaceIntf::linkUp;
Patrick Williams6aef7692021-05-01 06:39:41 -0500238 using EthernetInterfaceIntf::nicEnabled;
239 using MacAddressIntf::macAddress;
Ratan Gupta5978dd12017-07-25 13:47:13 +0530240
Ravi Tejaa5a09442020-07-17 00:57:33 -0500241 using EthernetInterfaceIntf::defaultGateway;
242 using EthernetInterfaceIntf::defaultGateway6;
Gunnar Mills57d9c502018-09-14 14:42:34 -0500243 /** @brief Absolute path of the resolv conf file */
244 static constexpr auto resolvConfFile = "/etc/resolv.conf";
Ratan Gupta6dec3902017-08-20 15:28:12 +0530245
Gunnar Mills57d9c502018-09-14 14:42:34 -0500246 protected:
247 /** @brief get the info of the ethernet interface.
248 * @return tuple having the link speed,autonegotiation,duplexmode .
249 */
250 InterfaceInfo getInterfaceInfo() const;
Ratan Gupta8c834932017-04-14 16:30:24 +0530251
Gunnar Mills57d9c502018-09-14 14:42:34 -0500252 /* @brief delete the vlan interface from system.
253 * @param[in] interface - vlan Interface.
254 */
255 void deleteVLANFromSystem(const std::string& interface);
Ratan Guptae9c9b812017-09-22 17:15:37 +0530256
Gunnar Mills57d9c502018-09-14 14:42:34 -0500257 /** @brief get the mac address of the interface.
258 * @param[in] interfaceName - Network interface name.
259 * @return macaddress on success
260 */
Ratan Gupta8c834932017-04-14 16:30:24 +0530261
Gunnar Mills57d9c502018-09-14 14:42:34 -0500262 std::string getMACAddress(const std::string& interfaceName) const;
Ratan Gupta8c834932017-04-14 16:30:24 +0530263
Gunnar Mills57d9c502018-09-14 14:42:34 -0500264 /** @brief construct the ip address dbus object path.
265 * @param[in] addressType - Type of ip address.
Patrick Williams6aef7692021-05-01 06:39:41 -0500266 * @param[in] ipAddress - IP address.
Gunnar Mills57d9c502018-09-14 14:42:34 -0500267 * @param[in] prefixLength - Length of prefix.
268 * @param[in] gateway - Gateway address.
Lei YU34027572021-08-11 15:23:52 +0800269 * @param[in] origin - The origin entry of the IP::Address
Ratan Gupta65e5abe2017-05-23 13:20:44 +0530270
Gunnar Mills57d9c502018-09-14 14:42:34 -0500271 * @return path of the address object.
272 */
Ratan Gupta82549cc2017-04-21 08:45:23 +0530273
Gunnar Mills57d9c502018-09-14 14:42:34 -0500274 std::string generateObjectPath(IP::Protocol addressType,
Patrick Williams6aef7692021-05-01 06:39:41 -0500275 const std::string& ipAddress,
Gunnar Mills57d9c502018-09-14 14:42:34 -0500276 uint8_t prefixLength,
Lei YU34027572021-08-11 15:23:52 +0800277 const std::string& gateway,
278 IP::AddressOrigin origin) const;
Ratan Gupta82549cc2017-04-21 08:45:23 +0530279
William A. Kennington III08505792019-01-30 16:00:04 -0800280 std::string
Patrick Williams6aef7692021-05-01 06:39:41 -0500281 generateStaticNeighborObjectPath(const std::string& ipAddress,
282 const std::string& macAddress) const;
William A. Kennington III08505792019-01-30 16:00:04 -0800283
Patrick Williams6aef7692021-05-01 06:39:41 -0500284 /** @brief generates the id by doing hash of ipAddress,
Gunnar Mills57d9c502018-09-14 14:42:34 -0500285 * prefixlength and the gateway.
Patrick Williams6aef7692021-05-01 06:39:41 -0500286 * @param[in] ipAddress - IP address.
Gunnar Mills57d9c502018-09-14 14:42:34 -0500287 * @param[in] prefixLength - Length of prefix.
288 * @param[in] gateway - Gateway address.
Lei YU34027572021-08-11 15:23:52 +0800289 * @param[in] origin - The string of the address origin
Gunnar Mills57d9c502018-09-14 14:42:34 -0500290 * @return hash string.
291 */
Ratan Gupta82549cc2017-04-21 08:45:23 +0530292
Patrick Williams6aef7692021-05-01 06:39:41 -0500293 static std::string generateId(const std::string& ipAddress,
Gunnar Mills57d9c502018-09-14 14:42:34 -0500294 uint8_t prefixLength,
Lei YU34027572021-08-11 15:23:52 +0800295 const std::string& gateway,
296 const std::string& origin);
Ratan Gupta82549cc2017-04-21 08:45:23 +0530297
Patrick Williams6aef7692021-05-01 06:39:41 -0500298 /** @brief generates the id by doing hash of ipAddress
William A. Kennington III08505792019-01-30 16:00:04 -0800299 * and the mac address.
Patrick Williams6aef7692021-05-01 06:39:41 -0500300 * @param[in] ipAddress - IP address.
301 * @param[in] macAddress - Gateway address.
William A. Kennington III08505792019-01-30 16:00:04 -0800302 * @return hash string.
303 */
Patrick Williams6aef7692021-05-01 06:39:41 -0500304 static std::string generateNeighborId(const std::string& ipAddress,
305 const std::string& macAddress);
William A. Kennington III08505792019-01-30 16:00:04 -0800306
Gunnar Mills57d9c502018-09-14 14:42:34 -0500307 /** @brief write the dhcp section **/
308 void writeDHCPSection(std::fstream& stream);
Ratan Gupta2b106532017-07-25 16:05:02 +0530309
Gunnar Mills57d9c502018-09-14 14:42:34 -0500310 /** @brief get the NTP server list from the network conf
311 *
312 */
313 ServerList getNTPServersFromConf();
Ratan Gupta497c0c92017-08-22 19:15:59 +0530314
Gunnar Mills57d9c502018-09-14 14:42:34 -0500315 /** @brief get the name server details from the network conf
316 *
317 */
Manojkiran Edaacd6dd52019-10-15 15:00:51 +0530318 virtual ServerList getNameServerFromResolvd();
319 ServerList getstaticNameServerFromConf();
Ratan Gupta6dec3902017-08-20 15:28:12 +0530320
Gunnar Mills57d9c502018-09-14 14:42:34 -0500321 /** @brief Persistent sdbusplus DBus bus connection. */
322 sdbusplus::bus::bus& bus;
Ratan Gupta82549cc2017-04-21 08:45:23 +0530323
Gunnar Mills57d9c502018-09-14 14:42:34 -0500324 /** @brief Network Manager object. */
325 Manager& manager;
Ratan Gupta4f1c18b2017-05-25 12:59:35 +0530326
Gunnar Mills57d9c502018-09-14 14:42:34 -0500327 /** @brief Persistent map of IPAddress dbus objects and their names */
328 AddressMap addrs;
Ratan Gupta82549cc2017-04-21 08:45:23 +0530329
William A. Kennington III08505792019-01-30 16:00:04 -0800330 /** @brief Persistent map of Neighbor dbus objects and their names */
331 NeighborMap staticNeighbors;
332
Gunnar Mills57d9c502018-09-14 14:42:34 -0500333 /** @brief Persistent map of VLAN interface dbus objects and their names */
334 VlanInterfaceMap vlanInterfaces;
Ratan Gupta5978dd12017-07-25 13:47:13 +0530335
Gunnar Mills57d9c502018-09-14 14:42:34 -0500336 /** @brief Dbus object path */
337 std::string objPath;
Ratan Gupta47722dc2017-05-26 18:32:23 +0530338
Gunnar Mills57d9c502018-09-14 14:42:34 -0500339 friend class TestEthernetInterface;
Johnathan Mantey817012a2020-01-30 15:07:39 -0800340
341 private:
342 /** @brief Determines if DHCP is active for the IP::Protocol supplied.
343 * @param[in] protocol - Either IPv4 or IPv6
344 * @param[in] ignoreProtocol - Allows IPv4 and IPv6 to be checked using a
345 * single call.
346 * @returns true/false value if DHCP is active for the input protocol
347 */
348 bool dhcpIsEnabled(IP::Protocol protocol, bool ignoreProtocol = false);
349
350 /** @brief Determines if DHCP will be active following next reconfig
351 * @param[in] protocol - Either IPv4 or IPv6
352 * @param[in] nextDHCPState - The new DHCP mode to take affect
353 * @returns true/false value if DHCP is active for the input protocol
354 */
355 bool dhcpToBeEnabled(IP::Protocol family, const std::string& nextDHCPState);
356
357 /** @brief Determines if the address is manually assigned
358 * @param[in] origin - The origin entry of the IP::Address
359 * @returns true/false value if the address is static
360 */
361 bool originIsManuallyAssigned(IP::AddressOrigin origin);
William A. Kennington III26275a32021-07-13 20:32:42 -0700362
363 /** @brief Determines if the NIC is enabled in systemd
364 * @returns true/false value if the NIC is enabled
365 */
366 bool queryNicEnabled() const;
Ratan Gupta8c834932017-04-14 16:30:24 +0530367};
368
369} // namespace network
370} // namespace phosphor