blob: daedc506e9bf3be83b1af7c5a15c3b835136f6d7 [file] [log] [blame]
Ratan Gupta8c834932017-04-14 16:30:24 +05301#pragma once
Ratan Gupta82549cc2017-04-21 08:45:23 +05302#include "types.hpp"
Ratan Gupta82549cc2017-04-21 08:45:23 +05303#include "xyz/openbmc_project/Network/IP/Create/server.hpp"
William A. Kennington III08505792019-01-30 16:00:04 -08004#include "xyz/openbmc_project/Network/Neighbor/CreateStatic/server.hpp"
Ratan Gupta8c834932017-04-14 16:30:24 +05305
William A. Kennington III95530ec2022-08-19 01:44:39 -07006#include <map>
Ratan Gupta8c834932017-04-14 16:30:24 +05307#include <sdbusplus/bus.hpp>
8#include <sdbusplus/server/object.hpp>
Ratan Gupta8c834932017-04-14 16:30:24 +05309#include <string>
William A. Kennington III95530ec2022-08-19 01:44:39 -070010#include <vector>
Patrick Venture189d44e2018-07-09 12:30:59 -070011#include <xyz/openbmc_project/Collection/DeleteAll/server.hpp>
12#include <xyz/openbmc_project/Network/EthernetInterface/server.hpp>
13#include <xyz/openbmc_project/Network/MACAddress/server.hpp>
Ratan Gupta8c834932017-04-14 16:30:24 +053014
15namespace phosphor
16{
17namespace network
18{
Ratan Gupta8c834932017-04-14 16:30:24 +053019
Patrick Williamsc38b0712022-07-22 19:26:54 -050020using Ifaces = sdbusplus::server::object_t<
Gunnar Mills57d9c502018-09-14 14:42:34 -050021 sdbusplus::xyz::openbmc_project::Network::server::EthernetInterface,
22 sdbusplus::xyz::openbmc_project::Network::server::MACAddress,
23 sdbusplus::xyz::openbmc_project::Network::IP::server::Create,
William A. Kennington III08505792019-01-30 16:00:04 -080024 sdbusplus::xyz::openbmc_project::Network::Neighbor::server::CreateStatic,
Gunnar Mills57d9c502018-09-14 14:42:34 -050025 sdbusplus::xyz::openbmc_project::Collection::server::DeleteAll>;
Ratan Gupta8c834932017-04-14 16:30:24 +053026
Ratan Gupta82549cc2017-04-21 08:45:23 +053027using IP = sdbusplus::xyz::openbmc_project::Network::server::IP;
Ratan Gupta87c13982017-06-15 09:27:27 +053028
29using EthernetInterfaceIntf =
30 sdbusplus::xyz::openbmc_project::Network::server::EthernetInterface;
Ratan Guptabd303b12017-08-18 17:10:07 +053031using MacAddressIntf =
32 sdbusplus::xyz::openbmc_project::Network::server::MACAddress;
Ratan Gupta87c13982017-06-15 09:27:27 +053033
Ratan Gupta497c0c92017-08-22 19:15:59 +053034using ServerList = std::vector<std::string>;
raviteja-bce379562019-03-28 05:59:36 -050035using ObjectPath = sdbusplus::message::object_path;
Ratan Gupta497c0c92017-08-22 19:15:59 +053036
Ratan Gupta4f1c18b2017-05-25 12:59:35 +053037class Manager; // forward declaration of network manager.
Ratan Gupta8c834932017-04-14 16:30:24 +053038
Ratan Gupta47722dc2017-05-26 18:32:23 +053039class TestEthernetInterface;
40
Ratan Gupta5978dd12017-07-25 13:47:13 +053041class VlanInterface;
42
43class IPAddress;
44
William A. Kennington III08505792019-01-30 16:00:04 -080045class Neighbor;
46
William A. Kennington III95530ec2022-08-19 01:44:39 -070047namespace config
48{
49class Parser;
50}
51
Ratan Gupta8c834932017-04-14 16:30:24 +053052using LinkSpeed = uint16_t;
53using DuplexMode = uint8_t;
54using Autoneg = uint8_t;
Johnathan Manteyfaa72e52020-01-08 10:38:58 -080055using LinkUp = bool;
Johnathan Manteyd0679f92019-10-29 16:20:28 -070056using NICEnabled = bool;
Tejas Patil2c0fc562021-08-03 19:13:46 +053057using MTU = size_t;
Ratan Gupta5978dd12017-07-25 13:47:13 +053058using VlanId = uint32_t;
59using InterfaceName = std::string;
Johnathan Manteyd0679f92019-10-29 16:20:28 -070060using InterfaceInfo =
Tejas Patil2c0fc562021-08-03 19:13:46 +053061 std::tuple<LinkSpeed, DuplexMode, Autoneg, LinkUp, NICEnabled, MTU>;
Ratan Gupta29b0e432017-05-25 12:51:40 +053062using AddressMap = std::map<std::string, std::shared_ptr<IPAddress>>;
William A. Kennington III08505792019-01-30 16:00:04 -080063using NeighborMap = std::map<std::string, std::shared_ptr<Neighbor>>;
Gunnar Mills57d9c502018-09-14 14:42:34 -050064using VlanInterfaceMap =
65 std::map<InterfaceName, std::unique_ptr<VlanInterface>>;
Ratan Gupta8c834932017-04-14 16:30:24 +053066
67/** @class EthernetInterface
68 * @brief OpenBMC Ethernet Interface implementation.
69 * @details A concrete implementation for the
70 * xyz.openbmc_project.Network.EthernetInterface DBus API.
71 */
Ratan Gupta82549cc2017-04-21 08:45:23 +053072class EthernetInterface : public Ifaces
Ratan Gupta8c834932017-04-14 16:30:24 +053073{
Gunnar Mills57d9c502018-09-14 14:42:34 -050074 public:
75 EthernetInterface() = delete;
76 EthernetInterface(const EthernetInterface&) = delete;
77 EthernetInterface& operator=(const EthernetInterface&) = delete;
78 EthernetInterface(EthernetInterface&&) = delete;
79 EthernetInterface& operator=(EthernetInterface&&) = delete;
80 virtual ~EthernetInterface() = default;
Ratan Gupta8c834932017-04-14 16:30:24 +053081
Gunnar Mills57d9c502018-09-14 14:42:34 -050082 /** @brief Constructor to put object onto bus at a dbus path.
83 * @param[in] bus - Bus to attach to.
84 * @param[in] objPath - Path to attach at.
William A. Kennington IIIa520a392022-08-08 12:17:34 -070085 * @param[in] config - The parsed configuation file.
Gunnar Mills57d9c502018-09-14 14:42:34 -050086 * @param[in] parent - parent object.
87 * @param[in] emitSignal - true if the object added signal needs to be
88 * send.
William A. Kennington III26275a32021-07-13 20:32:42 -070089 * @param[in] enabled - Override the lookup of nicEnabled
Gunnar Mills57d9c502018-09-14 14:42:34 -050090 */
Patrick Williamsc38b0712022-07-22 19:26:54 -050091 EthernetInterface(sdbusplus::bus_t& bus, const std::string& objPath,
William A. Kennington III0caf2212022-08-18 18:15:51 -070092 const config::Parser& config, Manager& parent,
93 bool emitSignal = true,
William A. Kennington III26275a32021-07-13 20:32:42 -070094 std::optional<bool> enabled = std::nullopt);
Ratan Gupta82549cc2017-04-21 08:45:23 +053095
Manojkiran Edaacd6dd52019-10-15 15:00:51 +053096 /** @brief Function used to load the nameservers.
97 */
William A. Kennington IIIa520a392022-08-08 12:17:34 -070098 void loadNameServers(const config::Parser& config);
Manojkiran Edaacd6dd52019-10-15 15:00:51 +053099
Patrick Williams6aef7692021-05-01 06:39:41 -0500100 /** @brief Function to create ipAddress dbus object.
Gunnar Mills57d9c502018-09-14 14:42:34 -0500101 * @param[in] addressType - Type of ip address.
Patrick Williams6aef7692021-05-01 06:39:41 -0500102 * @param[in] ipAddress- IP address.
Gunnar Mills57d9c502018-09-14 14:42:34 -0500103 * @param[in] prefixLength - Length of prefix.
104 * @param[in] gateway - Gateway ip address.
105 */
Ratan Gupta82549cc2017-04-21 08:45:23 +0530106
Patrick Williams6aef7692021-05-01 06:39:41 -0500107 ObjectPath ip(IP::Protocol addressType, std::string ipAddress,
raviteja-bce379562019-03-28 05:59:36 -0500108 uint8_t prefixLength, std::string gateway) override;
Ratan Gupta8c834932017-04-14 16:30:24 +0530109
William A. Kennington III08505792019-01-30 16:00:04 -0800110 /** @brief Function to create static neighbor dbus object.
111 * @param[in] ipAddress - IP address.
112 * @param[in] macAddress - Low level MAC address.
113 */
Patrick Williams6aef7692021-05-01 06:39:41 -0500114 ObjectPath neighbor(std::string ipAddress, std::string macAddress) override;
William A. Kennington III08505792019-01-30 16:00:04 -0800115
Patrick Williams6aef7692021-05-01 06:39:41 -0500116 /* @brief delete the dbus object of the given ipAddress.
117 * @param[in] ipAddress - IP address.
Gunnar Mills57d9c502018-09-14 14:42:34 -0500118 */
Patrick Williams6aef7692021-05-01 06:39:41 -0500119 void deleteObject(const std::string& ipAddress);
Ratan Gupta8c834932017-04-14 16:30:24 +0530120
Patrick Williams6aef7692021-05-01 06:39:41 -0500121 /* @brief delete the dbus object of the given ipAddress.
122 * @param[in] ipAddress - IP address.
William A. Kennington III08505792019-01-30 16:00:04 -0800123 */
124 void deleteStaticNeighborObject(const std::string& ipAddress);
125
Gunnar Mills57d9c502018-09-14 14:42:34 -0500126 /* @brief delete the vlan dbus object of the given interface.
127 * Also deletes the device file and the network file.
128 * @param[in] interface - VLAN Interface.
129 */
130 void deleteVLANObject(const std::string& interface);
Ratan Guptabc886292017-07-25 18:29:57 +0530131
Gunnar Mills57d9c502018-09-14 14:42:34 -0500132 /* @brief creates the dbus object(IPaddres) given in the address list.
133 * @param[in] addrs - address list for which dbus objects needs
134 * to create.
135 */
136 void createIPAddressObjects();
Ratan Gupta29b0e432017-05-25 12:51:40 +0530137
William A. Kennington III08505792019-01-30 16:00:04 -0800138 /* @brief creates the dbus object(Neighbor) given in the neighbor list.
139 */
140 void createStaticNeighborObjects();
141
William A. Kennington IIId7946a72019-04-19 14:24:09 -0700142 /* @brief Gets the index of the interface on the system
143 */
144 unsigned ifIndex() const;
145
Gunnar Mills57d9c502018-09-14 14:42:34 -0500146 /* @brief Gets all the ip addresses.
Patrick Williams6aef7692021-05-01 06:39:41 -0500147 * @returns the list of ipAddress.
Gunnar Mills57d9c502018-09-14 14:42:34 -0500148 */
149 const AddressMap& getAddresses() const
150 {
151 return addrs;
152 }
Ratan Gupta8c834932017-04-14 16:30:24 +0530153
William A. Kennington III08505792019-01-30 16:00:04 -0800154 /* @brief Gets all the static neighbor entries.
155 * @returns Static neighbor map.
156 */
157 const NeighborMap& getStaticNeighbors() const
158 {
159 return staticNeighbors;
160 }
161
Gunnar Mills57d9c502018-09-14 14:42:34 -0500162 /** Set value of DHCPEnabled */
William A. Kennington III8060c0d2022-08-18 19:19:34 -0700163 DHCPConf dhcpEnabled() const override;
Patrick Williams6aef7692021-05-01 06:39:41 -0500164 DHCPConf dhcpEnabled(DHCPConf value) override;
William A. Kennington III8060c0d2022-08-18 19:19:34 -0700165 using EthernetInterfaceIntf::dhcp4;
166 bool dhcp4(bool value) override;
167 using EthernetInterfaceIntf::dhcp6;
168 bool dhcp6(bool value) override;
Ratan Gupta87c13982017-06-15 09:27:27 +0530169
Johnathan Manteyfaa72e52020-01-08 10:38:58 -0800170 /** Retrieve Link State */
171 bool linkUp() const override;
172
Tejas Patil2c0fc562021-08-03 19:13:46 +0530173 /** Retrieve MTU Size */
174 size_t mtu() const override;
175
176 /** Set size of MTU */
177 size_t mtu(size_t value) override;
178
Johnathan Manteyd0679f92019-10-29 16:20:28 -0700179 /** Set value of NICEnabled */
Patrick Williams6aef7692021-05-01 06:39:41 -0500180 bool nicEnabled(bool value) override;
Johnathan Manteyd0679f92019-10-29 16:20:28 -0700181
Gunnar Mills57d9c502018-09-14 14:42:34 -0500182 /** @brief sets the MAC address.
183 * @param[in] value - MAC address which needs to be set on the system.
184 * @returns macAddress of the interface or throws an error.
185 */
Patrick Williams6aef7692021-05-01 06:39:41 -0500186 std::string macAddress(std::string value) override;
Ratan Guptabd303b12017-08-18 17:10:07 +0530187
Johnathan Mantey5b023f52019-06-24 16:06:37 -0700188 /** @brief check conf file for Router Advertisements
189 *
190 */
Patrick Williams6aef7692021-05-01 06:39:41 -0500191 bool ipv6AcceptRA(bool value) override;
William A. Kennington III8060c0d2022-08-18 19:19:34 -0700192 using EthernetInterfaceIntf::ipv6AcceptRA;
Johnathan Mantey5b023f52019-06-24 16:06:37 -0700193
Gunnar Mills57d9c502018-09-14 14:42:34 -0500194 /** @brief sets the NTP servers.
195 * @param[in] value - vector of NTP servers.
196 */
Patrick Williams6aef7692021-05-01 06:39:41 -0500197 ServerList ntpServers(ServerList value) override;
Ratan Gupta497c0c92017-08-22 19:15:59 +0530198
Manojkiran Edaacd6dd52019-10-15 15:00:51 +0530199 /** @brief sets the Static DNS/nameservers.
200 * @param[in] value - vector of DNS servers.
201 */
202
203 ServerList staticNameServers(ServerList value) override;
204
Gunnar Mills57d9c502018-09-14 14:42:34 -0500205 /** @brief create Vlan interface.
206 * @param[in] id- VLAN identifier.
207 */
William A. Kennington IIIf4b4ff82019-04-09 19:06:52 -0700208 ObjectPath createVLAN(VlanId id);
Ratan Gupta5978dd12017-07-25 13:47:13 +0530209
Gunnar Mills57d9c502018-09-14 14:42:34 -0500210 /** @brief load the vlan info from the system
211 * and creates the ip address dbus objects.
212 * @param[in] vlanID- VLAN identifier.
213 */
214 void loadVLAN(VlanId vlanID);
Ratan Gupta92bc2fe2017-07-26 22:40:21 +0530215
Gunnar Mills57d9c502018-09-14 14:42:34 -0500216 /** @brief write the network conf file with the in-memory objects.
217 */
218 void writeConfigurationFile();
Ratan Gupta2b106532017-07-25 16:05:02 +0530219
Gunnar Mills57d9c502018-09-14 14:42:34 -0500220 /** @brief delete all dbus objects.
221 */
222 void deleteAll();
Ratan Guptae9c9b812017-09-22 17:15:37 +0530223
Ravi Tejaa5a09442020-07-17 00:57:33 -0500224 /** @brief set the default v4 gateway of the interface.
225 * @param[in] gateway - default v4 gateway of the interface.
226 */
227 std::string defaultGateway(std::string gateway) override;
228
229 /** @brief set the default v6 gateway of the interface.
230 * @param[in] gateway - default v6 gateway of the interface.
231 */
232 std::string defaultGateway6(std::string gateway) override;
233
Gunnar Mills57d9c502018-09-14 14:42:34 -0500234 using EthernetInterfaceIntf::interfaceName;
Johnathan Manteyfaa72e52020-01-08 10:38:58 -0800235 using EthernetInterfaceIntf::linkUp;
Tejas Patil2c0fc562021-08-03 19:13:46 +0530236 using EthernetInterfaceIntf::mtu;
Patrick Williams6aef7692021-05-01 06:39:41 -0500237 using EthernetInterfaceIntf::nicEnabled;
238 using MacAddressIntf::macAddress;
Ratan Gupta5978dd12017-07-25 13:47:13 +0530239
Ravi Tejaa5a09442020-07-17 00:57:33 -0500240 using EthernetInterfaceIntf::defaultGateway;
241 using EthernetInterfaceIntf::defaultGateway6;
Gunnar Mills57d9c502018-09-14 14:42:34 -0500242 /** @brief Absolute path of the resolv conf file */
243 static constexpr auto resolvConfFile = "/etc/resolv.conf";
Ratan Gupta6dec390f2017-08-20 15:28:12 +0530244
Gunnar Mills57d9c502018-09-14 14:42:34 -0500245 protected:
246 /** @brief get the info of the ethernet interface.
247 * @return tuple having the link speed,autonegotiation,duplexmode .
248 */
249 InterfaceInfo getInterfaceInfo() const;
Ratan Gupta8c834932017-04-14 16:30:24 +0530250
Gunnar Mills57d9c502018-09-14 14:42:34 -0500251 /* @brief delete the vlan interface from system.
252 * @param[in] interface - vlan Interface.
253 */
254 void deleteVLANFromSystem(const std::string& interface);
Ratan Guptae9c9b812017-09-22 17:15:37 +0530255
Gunnar Mills57d9c502018-09-14 14:42:34 -0500256 /** @brief get the mac address of the interface.
257 * @param[in] interfaceName - Network interface name.
258 * @return macaddress on success
259 */
Ratan Gupta8c834932017-04-14 16:30:24 +0530260
Gunnar Mills57d9c502018-09-14 14:42:34 -0500261 std::string getMACAddress(const std::string& interfaceName) const;
Ratan Gupta8c834932017-04-14 16:30:24 +0530262
Gunnar Mills57d9c502018-09-14 14:42:34 -0500263 /** @brief construct the ip address dbus object path.
264 * @param[in] addressType - Type of ip address.
Patrick Williams6aef7692021-05-01 06:39:41 -0500265 * @param[in] ipAddress - IP address.
Gunnar Mills57d9c502018-09-14 14:42:34 -0500266 * @param[in] prefixLength - Length of prefix.
267 * @param[in] gateway - Gateway address.
Lei YU34027572021-08-11 15:23:52 +0800268 * @param[in] origin - The origin entry of the IP::Address
Ratan Gupta65e5abe2017-05-23 13:20:44 +0530269
Gunnar Mills57d9c502018-09-14 14:42:34 -0500270 * @return path of the address object.
271 */
Ratan Gupta82549cc2017-04-21 08:45:23 +0530272
Gunnar Mills57d9c502018-09-14 14:42:34 -0500273 std::string generateObjectPath(IP::Protocol addressType,
Patrick Williams6aef7692021-05-01 06:39:41 -0500274 const std::string& ipAddress,
Gunnar Mills57d9c502018-09-14 14:42:34 -0500275 uint8_t prefixLength,
Lei YU34027572021-08-11 15:23:52 +0800276 const std::string& gateway,
277 IP::AddressOrigin origin) const;
Ratan Gupta82549cc2017-04-21 08:45:23 +0530278
William A. Kennington III08505792019-01-30 16:00:04 -0800279 std::string
Patrick Williams6aef7692021-05-01 06:39:41 -0500280 generateStaticNeighborObjectPath(const std::string& ipAddress,
281 const std::string& macAddress) const;
William A. Kennington III08505792019-01-30 16:00:04 -0800282
Patrick Williams6aef7692021-05-01 06:39:41 -0500283 /** @brief generates the id by doing hash of ipAddress,
Gunnar Mills57d9c502018-09-14 14:42:34 -0500284 * prefixlength and the gateway.
Patrick Williams6aef7692021-05-01 06:39:41 -0500285 * @param[in] ipAddress - IP address.
Gunnar Mills57d9c502018-09-14 14:42:34 -0500286 * @param[in] prefixLength - Length of prefix.
287 * @param[in] gateway - Gateway address.
Lei YU34027572021-08-11 15:23:52 +0800288 * @param[in] origin - The string of the address origin
Gunnar Mills57d9c502018-09-14 14:42:34 -0500289 * @return hash string.
290 */
Ratan Gupta82549cc2017-04-21 08:45:23 +0530291
Patrick Williams6aef7692021-05-01 06:39:41 -0500292 static std::string generateId(const std::string& ipAddress,
Gunnar Mills57d9c502018-09-14 14:42:34 -0500293 uint8_t prefixLength,
Lei YU34027572021-08-11 15:23:52 +0800294 const std::string& gateway,
295 const std::string& origin);
Ratan Gupta82549cc2017-04-21 08:45:23 +0530296
Patrick Williams6aef7692021-05-01 06:39:41 -0500297 /** @brief generates the id by doing hash of ipAddress
William A. Kennington III08505792019-01-30 16:00:04 -0800298 * and the mac address.
Patrick Williams6aef7692021-05-01 06:39:41 -0500299 * @param[in] ipAddress - IP address.
300 * @param[in] macAddress - Gateway address.
William A. Kennington III08505792019-01-30 16:00:04 -0800301 * @return hash string.
302 */
Patrick Williams6aef7692021-05-01 06:39:41 -0500303 static std::string generateNeighborId(const std::string& ipAddress,
304 const std::string& macAddress);
William A. Kennington III08505792019-01-30 16:00:04 -0800305
Gunnar Mills57d9c502018-09-14 14:42:34 -0500306 /** @brief get the NTP server list from the network conf
307 *
308 */
309 ServerList getNTPServersFromConf();
Ratan Gupta497c0c92017-08-22 19:15:59 +0530310
Gunnar Mills57d9c502018-09-14 14:42:34 -0500311 /** @brief get the name server details from the network conf
312 *
313 */
Manojkiran Edaacd6dd52019-10-15 15:00:51 +0530314 virtual ServerList getNameServerFromResolvd();
Ratan Gupta6dec390f2017-08-20 15:28:12 +0530315
Gunnar Mills57d9c502018-09-14 14:42:34 -0500316 /** @brief Persistent sdbusplus DBus bus connection. */
Patrick Williamsc38b0712022-07-22 19:26:54 -0500317 sdbusplus::bus_t& bus;
Ratan Gupta82549cc2017-04-21 08:45:23 +0530318
Gunnar Mills57d9c502018-09-14 14:42:34 -0500319 /** @brief Network Manager object. */
320 Manager& manager;
Ratan Gupta4f1c18b2017-05-25 12:59:35 +0530321
Gunnar Mills57d9c502018-09-14 14:42:34 -0500322 /** @brief Persistent map of IPAddress dbus objects and their names */
323 AddressMap addrs;
Ratan Gupta82549cc2017-04-21 08:45:23 +0530324
William A. Kennington III08505792019-01-30 16:00:04 -0800325 /** @brief Persistent map of Neighbor dbus objects and their names */
326 NeighborMap staticNeighbors;
327
Gunnar Mills57d9c502018-09-14 14:42:34 -0500328 /** @brief Persistent map of VLAN interface dbus objects and their names */
329 VlanInterfaceMap vlanInterfaces;
Ratan Gupta5978dd12017-07-25 13:47:13 +0530330
Gunnar Mills57d9c502018-09-14 14:42:34 -0500331 /** @brief Dbus object path */
332 std::string objPath;
Ratan Gupta47722dc2017-05-26 18:32:23 +0530333
Gunnar Mills57d9c502018-09-14 14:42:34 -0500334 friend class TestEthernetInterface;
Johnathan Mantey817012a2020-01-30 15:07:39 -0800335
336 private:
337 /** @brief Determines if DHCP is active for the IP::Protocol supplied.
338 * @param[in] protocol - Either IPv4 or IPv6
Johnathan Mantey817012a2020-01-30 15:07:39 -0800339 * @returns true/false value if DHCP is active for the input protocol
340 */
William A. Kennington III24957b92021-12-03 13:59:19 -0800341 bool dhcpIsEnabled(IP::Protocol protocol);
Johnathan Mantey817012a2020-01-30 15:07:39 -0800342
Johnathan Mantey817012a2020-01-30 15:07:39 -0800343 /** @brief Determines if the address is manually assigned
344 * @param[in] origin - The origin entry of the IP::Address
345 * @returns true/false value if the address is static
346 */
347 bool originIsManuallyAssigned(IP::AddressOrigin origin);
William A. Kennington III26275a32021-07-13 20:32:42 -0700348
349 /** @brief Determines if the NIC is enabled in systemd
350 * @returns true/false value if the NIC is enabled
351 */
352 bool queryNicEnabled() const;
William A. Kennington IIIa520a392022-08-08 12:17:34 -0700353
354 std::string vlanIntfName(VlanId id) const;
355 std::string vlanObjPath(VlanId id) const;
Ratan Gupta8c834932017-04-14 16:30:24 +0530356};
357
358} // namespace network
359} // namespace phosphor