blob: f0931d7c745f19b15907dfa8467fa6f6f8d9185f [file] [log] [blame]
Ratan Gupta8c834932017-04-14 16:30:24 +05301#pragma once
William A. Kennington III9a20a6e2022-10-05 13:41:12 -07002#include "ipaddress.hpp"
3#include "neighbor.hpp"
Ratan Gupta82549cc2017-04-21 08:45:23 +05304#include "types.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
8#include <sdbusplus/bus.hpp>
9#include <sdbusplus/server/object.hpp>
Ratan Gupta8c834932017-04-14 16:30:24 +053010#include <string>
William A. Kennington III95530ec2022-08-19 01:44:39 -070011#include <vector>
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
Patrick Williamsc38b0712022-07-22 19:26:54 -050021using Ifaces = sdbusplus::server::object_t<
Gunnar Mills57d9c502018-09-14 14:42:34 -050022 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
William A. Kennington III9a20a6e2022-10-05 13:41:12 -070038class Manager;
Ratan Gupta8c834932017-04-14 16:30:24 +053039
Ratan Gupta47722dc2017-05-26 18:32:23 +053040class TestEthernetInterface;
41
Ratan Gupta5978dd12017-07-25 13:47:13 +053042class VlanInterface;
43
William A. Kennington III95530ec2022-08-19 01:44:39 -070044namespace config
45{
46class Parser;
47}
48
Ratan Gupta8c834932017-04-14 16:30:24 +053049using LinkSpeed = uint16_t;
50using DuplexMode = uint8_t;
51using Autoneg = uint8_t;
Johnathan Manteyfaa72e52020-01-08 10:38:58 -080052using LinkUp = bool;
Johnathan Manteyd0679f92019-10-29 16:20:28 -070053using NICEnabled = bool;
Tejas Patil2c0fc562021-08-03 19:13:46 +053054using MTU = size_t;
Ratan Gupta5978dd12017-07-25 13:47:13 +053055using VlanId = uint32_t;
56using InterfaceName = std::string;
Johnathan Manteyd0679f92019-10-29 16:20:28 -070057using InterfaceInfo =
Tejas Patil2c0fc562021-08-03 19:13:46 +053058 std::tuple<LinkSpeed, DuplexMode, Autoneg, LinkUp, NICEnabled, MTU>;
Ratan Gupta8c834932017-04-14 16:30:24 +053059
60/** @class EthernetInterface
61 * @brief OpenBMC Ethernet Interface implementation.
62 * @details A concrete implementation for the
63 * xyz.openbmc_project.Network.EthernetInterface DBus API.
64 */
Ratan Gupta82549cc2017-04-21 08:45:23 +053065class EthernetInterface : public Ifaces
Ratan Gupta8c834932017-04-14 16:30:24 +053066{
Gunnar Mills57d9c502018-09-14 14:42:34 -050067 public:
68 EthernetInterface() = delete;
69 EthernetInterface(const EthernetInterface&) = delete;
70 EthernetInterface& operator=(const EthernetInterface&) = delete;
71 EthernetInterface(EthernetInterface&&) = delete;
72 EthernetInterface& operator=(EthernetInterface&&) = delete;
73 virtual ~EthernetInterface() = default;
Ratan Gupta8c834932017-04-14 16:30:24 +053074
Gunnar Mills57d9c502018-09-14 14:42:34 -050075 /** @brief Constructor to put object onto bus at a dbus path.
76 * @param[in] bus - Bus to attach to.
77 * @param[in] objPath - Path to attach at.
William A. Kennington IIIa520a392022-08-08 12:17:34 -070078 * @param[in] config - The parsed configuation file.
Gunnar Mills57d9c502018-09-14 14:42:34 -050079 * @param[in] parent - parent object.
80 * @param[in] emitSignal - true if the object added signal needs to be
81 * send.
William A. Kennington III26275a32021-07-13 20:32:42 -070082 * @param[in] enabled - Override the lookup of nicEnabled
Gunnar Mills57d9c502018-09-14 14:42:34 -050083 */
Patrick Williamsc38b0712022-07-22 19:26:54 -050084 EthernetInterface(sdbusplus::bus_t& bus, const std::string& objPath,
William A. Kennington III0caf2212022-08-18 18:15:51 -070085 const config::Parser& config, Manager& parent,
86 bool emitSignal = true,
William A. Kennington III26275a32021-07-13 20:32:42 -070087 std::optional<bool> enabled = std::nullopt);
Ratan Gupta82549cc2017-04-21 08:45:23 +053088
Manojkiran Edaacd6dd52019-10-15 15:00:51 +053089 /** @brief Function used to load the nameservers.
90 */
William A. Kennington IIIa520a392022-08-08 12:17:34 -070091 void loadNameServers(const config::Parser& config);
Manojkiran Edaacd6dd52019-10-15 15:00:51 +053092
Patrick Williams6aef7692021-05-01 06:39:41 -050093 /** @brief Function to create ipAddress dbus object.
Gunnar Mills57d9c502018-09-14 14:42:34 -050094 * @param[in] addressType - Type of ip address.
Patrick Williams6aef7692021-05-01 06:39:41 -050095 * @param[in] ipAddress- IP address.
Gunnar Mills57d9c502018-09-14 14:42:34 -050096 * @param[in] prefixLength - Length of prefix.
97 * @param[in] gateway - Gateway ip address.
98 */
Ratan Gupta82549cc2017-04-21 08:45:23 +053099
Patrick Williams6aef7692021-05-01 06:39:41 -0500100 ObjectPath ip(IP::Protocol addressType, std::string ipAddress,
raviteja-bce379562019-03-28 05:59:36 -0500101 uint8_t prefixLength, std::string gateway) override;
Ratan Gupta8c834932017-04-14 16:30:24 +0530102
William A. Kennington III08505792019-01-30 16:00:04 -0800103 /** @brief Function to create static neighbor dbus object.
104 * @param[in] ipAddress - IP address.
105 * @param[in] macAddress - Low level MAC address.
106 */
Patrick Williams6aef7692021-05-01 06:39:41 -0500107 ObjectPath neighbor(std::string ipAddress, std::string macAddress) override;
William A. Kennington III08505792019-01-30 16:00:04 -0800108
Patrick Williams6aef7692021-05-01 06:39:41 -0500109 /* @brief delete the dbus object of the given ipAddress.
110 * @param[in] ipAddress - IP address.
Gunnar Mills57d9c502018-09-14 14:42:34 -0500111 */
Patrick Williams6aef7692021-05-01 06:39:41 -0500112 void deleteObject(const std::string& ipAddress);
Ratan Gupta8c834932017-04-14 16:30:24 +0530113
Patrick Williams6aef7692021-05-01 06:39:41 -0500114 /* @brief delete the dbus object of the given ipAddress.
115 * @param[in] ipAddress - IP address.
William A. Kennington III08505792019-01-30 16:00:04 -0800116 */
117 void deleteStaticNeighborObject(const std::string& ipAddress);
118
Gunnar Mills57d9c502018-09-14 14:42:34 -0500119 /* @brief delete the vlan dbus object of the given interface.
120 * Also deletes the device file and the network file.
121 * @param[in] interface - VLAN Interface.
122 */
123 void deleteVLANObject(const std::string& interface);
Ratan Guptabc886292017-07-25 18:29:57 +0530124
Gunnar Mills57d9c502018-09-14 14:42:34 -0500125 /* @brief creates the dbus object(IPaddres) given in the address list.
126 * @param[in] addrs - address list for which dbus objects needs
127 * to create.
128 */
129 void createIPAddressObjects();
Ratan Gupta29b0e432017-05-25 12:51:40 +0530130
William A. Kennington III08505792019-01-30 16:00:04 -0800131 /* @brief creates the dbus object(Neighbor) given in the neighbor list.
132 */
133 void createStaticNeighborObjects();
134
William A. Kennington IIId7946a72019-04-19 14:24:09 -0700135 /* @brief Gets the index of the interface on the system
136 */
137 unsigned ifIndex() const;
138
Gunnar Mills57d9c502018-09-14 14:42:34 -0500139 /* @brief Gets all the ip addresses.
Patrick Williams6aef7692021-05-01 06:39:41 -0500140 * @returns the list of ipAddress.
Gunnar Mills57d9c502018-09-14 14:42:34 -0500141 */
William A. Kennington III9a20a6e2022-10-05 13:41:12 -0700142 inline const auto& getAddresses() const
Gunnar Mills57d9c502018-09-14 14:42:34 -0500143 {
144 return addrs;
145 }
Ratan Gupta8c834932017-04-14 16:30:24 +0530146
William A. Kennington III08505792019-01-30 16:00:04 -0800147 /* @brief Gets all the static neighbor entries.
148 * @returns Static neighbor map.
149 */
William A. Kennington III9a20a6e2022-10-05 13:41:12 -0700150 inline const auto& getStaticNeighbors() const
William A. Kennington III08505792019-01-30 16:00:04 -0800151 {
152 return staticNeighbors;
153 }
154
Gunnar Mills57d9c502018-09-14 14:42:34 -0500155 /** Set value of DHCPEnabled */
William A. Kennington III8060c0d2022-08-18 19:19:34 -0700156 DHCPConf dhcpEnabled() const override;
Patrick Williams6aef7692021-05-01 06:39:41 -0500157 DHCPConf dhcpEnabled(DHCPConf value) override;
William A. Kennington III8060c0d2022-08-18 19:19:34 -0700158 using EthernetInterfaceIntf::dhcp4;
159 bool dhcp4(bool value) override;
160 using EthernetInterfaceIntf::dhcp6;
161 bool dhcp6(bool value) override;
Ratan Gupta87c13982017-06-15 09:27:27 +0530162
Johnathan Manteyfaa72e52020-01-08 10:38:58 -0800163 /** Retrieve Link State */
164 bool linkUp() const override;
165
Tejas Patil2c0fc562021-08-03 19:13:46 +0530166 /** Retrieve MTU Size */
167 size_t mtu() const override;
168
169 /** Set size of MTU */
170 size_t mtu(size_t value) override;
171
Johnathan Manteyd0679f92019-10-29 16:20:28 -0700172 /** Set value of NICEnabled */
Patrick Williams6aef7692021-05-01 06:39:41 -0500173 bool nicEnabled(bool value) override;
Johnathan Manteyd0679f92019-10-29 16:20:28 -0700174
Gunnar Mills57d9c502018-09-14 14:42:34 -0500175 /** @brief sets the MAC address.
176 * @param[in] value - MAC address which needs to be set on the system.
177 * @returns macAddress of the interface or throws an error.
178 */
Patrick Williams6aef7692021-05-01 06:39:41 -0500179 std::string macAddress(std::string value) override;
Ratan Guptabd303b12017-08-18 17:10:07 +0530180
Johnathan Mantey5b023f52019-06-24 16:06:37 -0700181 /** @brief check conf file for Router Advertisements
182 *
183 */
Patrick Williams6aef7692021-05-01 06:39:41 -0500184 bool ipv6AcceptRA(bool value) override;
William A. Kennington III8060c0d2022-08-18 19:19:34 -0700185 using EthernetInterfaceIntf::ipv6AcceptRA;
Johnathan Mantey5b023f52019-06-24 16:06:37 -0700186
Gunnar Mills57d9c502018-09-14 14:42:34 -0500187 /** @brief sets the NTP servers.
188 * @param[in] value - vector of NTP servers.
189 */
Patrick Williams6aef7692021-05-01 06:39:41 -0500190 ServerList ntpServers(ServerList value) override;
Ratan Gupta497c0c92017-08-22 19:15:59 +0530191
Manojkiran Edaacd6dd52019-10-15 15:00:51 +0530192 /** @brief sets the Static DNS/nameservers.
193 * @param[in] value - vector of DNS servers.
194 */
195
196 ServerList staticNameServers(ServerList value) override;
197
Gunnar Mills57d9c502018-09-14 14:42:34 -0500198 /** @brief create Vlan interface.
199 * @param[in] id- VLAN identifier.
200 */
William A. Kennington IIIf4b4ff82019-04-09 19:06:52 -0700201 ObjectPath createVLAN(VlanId id);
Ratan Gupta5978dd12017-07-25 13:47:13 +0530202
Gunnar Mills57d9c502018-09-14 14:42:34 -0500203 /** @brief load the vlan info from the system
204 * and creates the ip address dbus objects.
205 * @param[in] vlanID- VLAN identifier.
206 */
207 void loadVLAN(VlanId vlanID);
Ratan Gupta92bc2fe2017-07-26 22:40:21 +0530208
Gunnar Mills57d9c502018-09-14 14:42:34 -0500209 /** @brief write the network conf file with the in-memory objects.
210 */
211 void writeConfigurationFile();
Ratan Gupta2b106532017-07-25 16:05:02 +0530212
Gunnar Mills57d9c502018-09-14 14:42:34 -0500213 /** @brief delete all dbus objects.
214 */
215 void deleteAll();
Ratan Guptae9c9b812017-09-22 17:15:37 +0530216
Ravi Tejaa5a09442020-07-17 00:57:33 -0500217 /** @brief set the default v4 gateway of the interface.
218 * @param[in] gateway - default v4 gateway of the interface.
219 */
220 std::string defaultGateway(std::string gateway) override;
221
222 /** @brief set the default v6 gateway of the interface.
223 * @param[in] gateway - default v6 gateway of the interface.
224 */
225 std::string defaultGateway6(std::string gateway) override;
226
Gunnar Mills57d9c502018-09-14 14:42:34 -0500227 using EthernetInterfaceIntf::interfaceName;
Johnathan Manteyfaa72e52020-01-08 10:38:58 -0800228 using EthernetInterfaceIntf::linkUp;
Tejas Patil2c0fc562021-08-03 19:13:46 +0530229 using EthernetInterfaceIntf::mtu;
Patrick Williams6aef7692021-05-01 06:39:41 -0500230 using EthernetInterfaceIntf::nicEnabled;
231 using MacAddressIntf::macAddress;
Ratan Gupta5978dd12017-07-25 13:47:13 +0530232
Ravi Tejaa5a09442020-07-17 00:57:33 -0500233 using EthernetInterfaceIntf::defaultGateway;
234 using EthernetInterfaceIntf::defaultGateway6;
Gunnar Mills57d9c502018-09-14 14:42:34 -0500235 /** @brief Absolute path of the resolv conf file */
236 static constexpr auto resolvConfFile = "/etc/resolv.conf";
Ratan Gupta6dec3902017-08-20 15:28:12 +0530237
Gunnar Mills57d9c502018-09-14 14:42:34 -0500238 protected:
239 /** @brief get the info of the ethernet interface.
240 * @return tuple having the link speed,autonegotiation,duplexmode .
241 */
242 InterfaceInfo getInterfaceInfo() const;
Ratan Gupta8c834932017-04-14 16:30:24 +0530243
Gunnar Mills57d9c502018-09-14 14:42:34 -0500244 /* @brief delete the vlan interface from system.
245 * @param[in] interface - vlan Interface.
246 */
247 void deleteVLANFromSystem(const std::string& interface);
Ratan Guptae9c9b812017-09-22 17:15:37 +0530248
Gunnar Mills57d9c502018-09-14 14:42:34 -0500249 /** @brief get the mac address of the interface.
250 * @param[in] interfaceName - Network interface name.
251 * @return macaddress on success
252 */
Ratan Gupta8c834932017-04-14 16:30:24 +0530253
Gunnar Mills57d9c502018-09-14 14:42:34 -0500254 std::string getMACAddress(const std::string& interfaceName) const;
Ratan Gupta8c834932017-04-14 16:30:24 +0530255
Gunnar Mills57d9c502018-09-14 14:42:34 -0500256 /** @brief construct the ip address dbus object path.
257 * @param[in] addressType - Type of ip address.
Patrick Williams6aef7692021-05-01 06:39:41 -0500258 * @param[in] ipAddress - IP address.
Gunnar Mills57d9c502018-09-14 14:42:34 -0500259 * @param[in] prefixLength - Length of prefix.
260 * @param[in] gateway - Gateway address.
Lei YU34027572021-08-11 15:23:52 +0800261 * @param[in] origin - The origin entry of the IP::Address
Ratan Gupta65e5abe2017-05-23 13:20:44 +0530262
Gunnar Mills57d9c502018-09-14 14:42:34 -0500263 * @return path of the address object.
264 */
Ratan Gupta82549cc2017-04-21 08:45:23 +0530265
Gunnar Mills57d9c502018-09-14 14:42:34 -0500266 std::string generateObjectPath(IP::Protocol addressType,
Patrick Williams6aef7692021-05-01 06:39:41 -0500267 const std::string& ipAddress,
Gunnar Mills57d9c502018-09-14 14:42:34 -0500268 uint8_t prefixLength,
Lei YU34027572021-08-11 15:23:52 +0800269 const std::string& gateway,
270 IP::AddressOrigin origin) const;
Ratan Gupta82549cc2017-04-21 08:45:23 +0530271
William A. Kennington III08505792019-01-30 16:00:04 -0800272 std::string
Patrick Williams6aef7692021-05-01 06:39:41 -0500273 generateStaticNeighborObjectPath(const std::string& ipAddress,
274 const std::string& macAddress) const;
William A. Kennington III08505792019-01-30 16:00:04 -0800275
Patrick Williams6aef7692021-05-01 06:39:41 -0500276 /** @brief generates the id by doing hash of ipAddress,
Gunnar Mills57d9c502018-09-14 14:42:34 -0500277 * prefixlength and the gateway.
Patrick Williams6aef7692021-05-01 06:39:41 -0500278 * @param[in] ipAddress - IP address.
Gunnar Mills57d9c502018-09-14 14:42:34 -0500279 * @param[in] prefixLength - Length of prefix.
280 * @param[in] gateway - Gateway address.
Lei YU34027572021-08-11 15:23:52 +0800281 * @param[in] origin - The string of the address origin
Gunnar Mills57d9c502018-09-14 14:42:34 -0500282 * @return hash string.
283 */
Ratan Gupta82549cc2017-04-21 08:45:23 +0530284
Patrick Williams6aef7692021-05-01 06:39:41 -0500285 static std::string generateId(const std::string& ipAddress,
Gunnar Mills57d9c502018-09-14 14:42:34 -0500286 uint8_t prefixLength,
Lei YU34027572021-08-11 15:23:52 +0800287 const std::string& gateway,
288 const std::string& origin);
Ratan Gupta82549cc2017-04-21 08:45:23 +0530289
Patrick Williams6aef7692021-05-01 06:39:41 -0500290 /** @brief generates the id by doing hash of ipAddress
William A. Kennington III08505792019-01-30 16:00:04 -0800291 * and the mac address.
Patrick Williams6aef7692021-05-01 06:39:41 -0500292 * @param[in] ipAddress - IP address.
293 * @param[in] macAddress - Gateway address.
William A. Kennington III08505792019-01-30 16:00:04 -0800294 * @return hash string.
295 */
Patrick Williams6aef7692021-05-01 06:39:41 -0500296 static std::string generateNeighborId(const std::string& ipAddress,
297 const std::string& macAddress);
William A. Kennington III08505792019-01-30 16:00:04 -0800298
Gunnar Mills57d9c502018-09-14 14:42:34 -0500299 /** @brief get the NTP server list from the network conf
300 *
301 */
302 ServerList getNTPServersFromConf();
Ratan Gupta497c0c92017-08-22 19:15:59 +0530303
Gunnar Mills57d9c502018-09-14 14:42:34 -0500304 /** @brief get the name server details from the network conf
305 *
306 */
Manojkiran Edaacd6dd52019-10-15 15:00:51 +0530307 virtual ServerList getNameServerFromResolvd();
Ratan Gupta6dec3902017-08-20 15:28:12 +0530308
Gunnar Mills57d9c502018-09-14 14:42:34 -0500309 /** @brief Persistent sdbusplus DBus bus connection. */
Patrick Williamsc38b0712022-07-22 19:26:54 -0500310 sdbusplus::bus_t& bus;
Ratan Gupta82549cc2017-04-21 08:45:23 +0530311
Gunnar Mills57d9c502018-09-14 14:42:34 -0500312 /** @brief Network Manager object. */
313 Manager& manager;
Ratan Gupta4f1c18b2017-05-25 12:59:35 +0530314
Gunnar Mills57d9c502018-09-14 14:42:34 -0500315 /** @brief Persistent map of IPAddress dbus objects and their names */
William A. Kennington III9a20a6e2022-10-05 13:41:12 -0700316 string_umap<std::unique_ptr<IPAddress>> addrs;
Ratan Gupta82549cc2017-04-21 08:45:23 +0530317
William A. Kennington III08505792019-01-30 16:00:04 -0800318 /** @brief Persistent map of Neighbor dbus objects and their names */
William A. Kennington III9a20a6e2022-10-05 13:41:12 -0700319 string_umap<std::unique_ptr<Neighbor>> staticNeighbors;
William A. Kennington III08505792019-01-30 16:00:04 -0800320
Gunnar Mills57d9c502018-09-14 14:42:34 -0500321 /** @brief Persistent map of VLAN interface dbus objects and their names */
William A. Kennington III9a20a6e2022-10-05 13:41:12 -0700322 string_umap<std::unique_ptr<VlanInterface>> vlanInterfaces;
Ratan Gupta5978dd12017-07-25 13:47:13 +0530323
Gunnar Mills57d9c502018-09-14 14:42:34 -0500324 /** @brief Dbus object path */
325 std::string objPath;
Ratan Gupta47722dc2017-05-26 18:32:23 +0530326
Gunnar Mills57d9c502018-09-14 14:42:34 -0500327 friend class TestEthernetInterface;
Johnathan Mantey817012a2020-01-30 15:07:39 -0800328
329 private:
330 /** @brief Determines if DHCP is active for the IP::Protocol supplied.
331 * @param[in] protocol - Either IPv4 or IPv6
Johnathan Mantey817012a2020-01-30 15:07:39 -0800332 * @returns true/false value if DHCP is active for the input protocol
333 */
William A. Kennington III24957b92021-12-03 13:59:19 -0800334 bool dhcpIsEnabled(IP::Protocol protocol);
Johnathan Mantey817012a2020-01-30 15:07:39 -0800335
Johnathan Mantey817012a2020-01-30 15:07:39 -0800336 /** @brief Determines if the address is manually assigned
337 * @param[in] origin - The origin entry of the IP::Address
338 * @returns true/false value if the address is static
339 */
340 bool originIsManuallyAssigned(IP::AddressOrigin origin);
William A. Kennington III26275a32021-07-13 20:32:42 -0700341
342 /** @brief Determines if the NIC is enabled in systemd
343 * @returns true/false value if the NIC is enabled
344 */
345 bool queryNicEnabled() const;
William A. Kennington IIIa520a392022-08-08 12:17:34 -0700346
347 std::string vlanIntfName(VlanId id) const;
348 std::string vlanObjPath(VlanId id) const;
Ratan Gupta8c834932017-04-14 16:30:24 +0530349};
350
351} // namespace network
352} // namespace phosphor