blob: e0f29874263df4c8c817ec180d91edcff7e1e2a7 [file] [log] [blame]
Ratan Gupta8c834932017-04-14 16:30:24 +05301#pragma once
2
William A. Kennington IIIa520a392022-08-08 12:17:34 -07003#include "config_parser.hpp"
Ratan Gupta82549cc2017-04-21 08:45:23 +05304#include "types.hpp"
Ratan Gupta8804feb2017-05-25 10:49:57 +05305#include "util.hpp"
Ratan Gupta82549cc2017-04-21 08:45:23 +05306#include "xyz/openbmc_project/Network/IP/Create/server.hpp"
William A. Kennington III08505792019-01-30 16:00:04 -08007#include "xyz/openbmc_project/Network/Neighbor/CreateStatic/server.hpp"
Ratan Gupta8c834932017-04-14 16:30:24 +05308
Manojkiran Edaa879baa2020-06-13 14:39:08 +05309#include <filesystem>
Ratan Gupta8c834932017-04-14 16:30:24 +053010#include <sdbusplus/bus.hpp>
11#include <sdbusplus/server/object.hpp>
Ratan Gupta8c834932017-04-14 16:30:24 +053012#include <string>
Patrick Venture189d44e2018-07-09 12:30:59 -070013#include <xyz/openbmc_project/Collection/DeleteAll/server.hpp>
14#include <xyz/openbmc_project/Network/EthernetInterface/server.hpp>
15#include <xyz/openbmc_project/Network/MACAddress/server.hpp>
Ratan Gupta8c834932017-04-14 16:30:24 +053016
17namespace phosphor
18{
19namespace network
20{
Ratan Gupta8c834932017-04-14 16:30:24 +053021
Patrick Williamsc38b0712022-07-22 19:26:54 -050022using Ifaces = sdbusplus::server::object_t<
Gunnar Mills57d9c502018-09-14 14:42:34 -050023 sdbusplus::xyz::openbmc_project::Network::server::EthernetInterface,
24 sdbusplus::xyz::openbmc_project::Network::server::MACAddress,
25 sdbusplus::xyz::openbmc_project::Network::IP::server::Create,
William A. Kennington III08505792019-01-30 16:00:04 -080026 sdbusplus::xyz::openbmc_project::Network::Neighbor::server::CreateStatic,
Gunnar Mills57d9c502018-09-14 14:42:34 -050027 sdbusplus::xyz::openbmc_project::Collection::server::DeleteAll>;
Ratan Gupta8c834932017-04-14 16:30:24 +053028
Ratan Gupta82549cc2017-04-21 08:45:23 +053029using IP = sdbusplus::xyz::openbmc_project::Network::server::IP;
Ratan Gupta87c13982017-06-15 09:27:27 +053030
31using EthernetInterfaceIntf =
32 sdbusplus::xyz::openbmc_project::Network::server::EthernetInterface;
Ratan Guptabd303b12017-08-18 17:10:07 +053033using MacAddressIntf =
34 sdbusplus::xyz::openbmc_project::Network::server::MACAddress;
Ratan Gupta87c13982017-06-15 09:27:27 +053035
Ratan Gupta497c0c92017-08-22 19:15:59 +053036using ServerList = std::vector<std::string>;
raviteja-bce379562019-03-28 05:59:36 -050037using ObjectPath = sdbusplus::message::object_path;
Ratan Gupta497c0c92017-08-22 19:15:59 +053038
Manojkiran Edaa879baa2020-06-13 14:39:08 +053039namespace fs = std::filesystem;
Ratan Gupta5978dd12017-07-25 13:47:13 +053040
Ratan Gupta4f1c18b2017-05-25 12:59:35 +053041class Manager; // forward declaration of network manager.
Ratan Gupta8c834932017-04-14 16:30:24 +053042
Ratan Gupta47722dc2017-05-26 18:32:23 +053043class TestEthernetInterface;
44
Ratan Gupta5978dd12017-07-25 13:47:13 +053045class VlanInterface;
46
47class IPAddress;
48
William A. Kennington III08505792019-01-30 16:00:04 -080049class Neighbor;
50
Ratan Gupta8c834932017-04-14 16:30:24 +053051using LinkSpeed = uint16_t;
52using DuplexMode = uint8_t;
53using Autoneg = uint8_t;
Johnathan Manteyfaa72e52020-01-08 10:38:58 -080054using LinkUp = bool;
Johnathan Manteyd0679f92019-10-29 16:20:28 -070055using NICEnabled = bool;
Tejas Patil2c0fc562021-08-03 19:13:46 +053056using MTU = size_t;
Ratan Gupta5978dd12017-07-25 13:47:13 +053057using VlanId = uint32_t;
58using InterfaceName = std::string;
Johnathan Manteyd0679f92019-10-29 16:20:28 -070059using InterfaceInfo =
Tejas Patil2c0fc562021-08-03 19:13:46 +053060 std::tuple<LinkSpeed, DuplexMode, Autoneg, LinkUp, NICEnabled, MTU>;
Ratan Gupta29b0e432017-05-25 12:51:40 +053061using AddressMap = std::map<std::string, std::shared_ptr<IPAddress>>;
William A. Kennington III08505792019-01-30 16:00:04 -080062using NeighborMap = std::map<std::string, std::shared_ptr<Neighbor>>;
Gunnar Mills57d9c502018-09-14 14:42:34 -050063using VlanInterfaceMap =
64 std::map<InterfaceName, std::unique_ptr<VlanInterface>>;
Ratan Gupta8c834932017-04-14 16:30:24 +053065
66/** @class EthernetInterface
67 * @brief OpenBMC Ethernet Interface implementation.
68 * @details A concrete implementation for the
69 * xyz.openbmc_project.Network.EthernetInterface DBus API.
70 */
Ratan Gupta82549cc2017-04-21 08:45:23 +053071class EthernetInterface : public Ifaces
Ratan Gupta8c834932017-04-14 16:30:24 +053072{
Gunnar Mills57d9c502018-09-14 14:42:34 -050073 public:
74 EthernetInterface() = delete;
75 EthernetInterface(const EthernetInterface&) = delete;
76 EthernetInterface& operator=(const EthernetInterface&) = delete;
77 EthernetInterface(EthernetInterface&&) = delete;
78 EthernetInterface& operator=(EthernetInterface&&) = delete;
79 virtual ~EthernetInterface() = default;
Ratan Gupta8c834932017-04-14 16:30:24 +053080
Gunnar Mills57d9c502018-09-14 14:42:34 -050081 /** @brief Constructor to put object onto bus at a dbus path.
82 * @param[in] bus - Bus to attach to.
83 * @param[in] objPath - Path to attach at.
William A. Kennington IIIa520a392022-08-08 12:17:34 -070084 * @param[in] config - The parsed configuation file.
Gunnar Mills57d9c502018-09-14 14:42:34 -050085 * @param[in] parent - parent object.
86 * @param[in] emitSignal - true if the object added signal needs to be
87 * send.
William A. Kennington III26275a32021-07-13 20:32:42 -070088 * @param[in] enabled - Override the lookup of nicEnabled
Gunnar Mills57d9c502018-09-14 14:42:34 -050089 */
Patrick Williamsc38b0712022-07-22 19:26:54 -050090 EthernetInterface(sdbusplus::bus_t& bus, const std::string& objPath,
William A. Kennington III0caf2212022-08-18 18:15:51 -070091 const config::Parser& config, Manager& parent,
92 bool emitSignal = true,
William A. Kennington III26275a32021-07-13 20:32:42 -070093 std::optional<bool> enabled = std::nullopt);
Ratan Gupta82549cc2017-04-21 08:45:23 +053094
Manojkiran Edaacd6dd52019-10-15 15:00:51 +053095 /** @brief Function used to load the nameservers.
96 */
William A. Kennington IIIa520a392022-08-08 12:17:34 -070097 void loadNameServers(const config::Parser& config);
Manojkiran Edaacd6dd52019-10-15 15:00:51 +053098
Patrick Williams6aef7692021-05-01 06:39:41 -050099 /** @brief Function to create ipAddress dbus object.
Gunnar Mills57d9c502018-09-14 14:42:34 -0500100 * @param[in] addressType - Type of ip address.
Patrick Williams6aef7692021-05-01 06:39:41 -0500101 * @param[in] ipAddress- IP address.
Gunnar Mills57d9c502018-09-14 14:42:34 -0500102 * @param[in] prefixLength - Length of prefix.
103 * @param[in] gateway - Gateway ip address.
104 */
Ratan Gupta82549cc2017-04-21 08:45:23 +0530105
Patrick Williams6aef7692021-05-01 06:39:41 -0500106 ObjectPath ip(IP::Protocol addressType, std::string ipAddress,
raviteja-bce379562019-03-28 05:59:36 -0500107 uint8_t prefixLength, std::string gateway) override;
Ratan Gupta8c834932017-04-14 16:30:24 +0530108
William A. Kennington III08505792019-01-30 16:00:04 -0800109 /** @brief Function to create static neighbor dbus object.
110 * @param[in] ipAddress - IP address.
111 * @param[in] macAddress - Low level MAC address.
112 */
Patrick Williams6aef7692021-05-01 06:39:41 -0500113 ObjectPath neighbor(std::string ipAddress, std::string macAddress) override;
William A. Kennington III08505792019-01-30 16:00:04 -0800114
Patrick Williams6aef7692021-05-01 06:39:41 -0500115 /* @brief delete the dbus object of the given ipAddress.
116 * @param[in] ipAddress - IP address.
Gunnar Mills57d9c502018-09-14 14:42:34 -0500117 */
Patrick Williams6aef7692021-05-01 06:39:41 -0500118 void deleteObject(const std::string& ipAddress);
Ratan Gupta8c834932017-04-14 16:30:24 +0530119
Patrick Williams6aef7692021-05-01 06:39:41 -0500120 /* @brief delete the dbus object of the given ipAddress.
121 * @param[in] ipAddress - IP address.
William A. Kennington III08505792019-01-30 16:00:04 -0800122 */
123 void deleteStaticNeighborObject(const std::string& ipAddress);
124
Gunnar Mills57d9c502018-09-14 14:42:34 -0500125 /* @brief delete the vlan dbus object of the given interface.
126 * Also deletes the device file and the network file.
127 * @param[in] interface - VLAN Interface.
128 */
129 void deleteVLANObject(const std::string& interface);
Ratan Guptabc886292017-07-25 18:29:57 +0530130
Gunnar Mills57d9c502018-09-14 14:42:34 -0500131 /* @brief creates the dbus object(IPaddres) given in the address list.
132 * @param[in] addrs - address list for which dbus objects needs
133 * to create.
134 */
135 void createIPAddressObjects();
Ratan Gupta29b0e432017-05-25 12:51:40 +0530136
William A. Kennington III08505792019-01-30 16:00:04 -0800137 /* @brief creates the dbus object(Neighbor) given in the neighbor list.
138 */
139 void createStaticNeighborObjects();
140
William A. Kennington IIId7946a72019-04-19 14:24:09 -0700141 /* @brief Gets the index of the interface on the system
142 */
143 unsigned ifIndex() const;
144
Gunnar Mills57d9c502018-09-14 14:42:34 -0500145 /* @brief Gets all the ip addresses.
Patrick Williams6aef7692021-05-01 06:39:41 -0500146 * @returns the list of ipAddress.
Gunnar Mills57d9c502018-09-14 14:42:34 -0500147 */
148 const AddressMap& getAddresses() const
149 {
150 return addrs;
151 }
Ratan Gupta8c834932017-04-14 16:30:24 +0530152
William A. Kennington III08505792019-01-30 16:00:04 -0800153 /* @brief Gets all the static neighbor entries.
154 * @returns Static neighbor map.
155 */
156 const NeighborMap& getStaticNeighbors() const
157 {
158 return staticNeighbors;
159 }
160
Gunnar Mills57d9c502018-09-14 14:42:34 -0500161 /** Set value of DHCPEnabled */
Patrick Williams6aef7692021-05-01 06:39:41 -0500162 DHCPConf dhcpEnabled(DHCPConf value) override;
Johnathan Mantey817012a2020-01-30 15:07:39 -0800163
164 /** @brief Selectively disables DHCP
165 * @param[in] protocol - The IPv4 or IPv6 protocol to return to static
166 * addressing mode
167 */
168 void disableDHCP(IP::Protocol protocol);
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;
Johnathan Mantey5b023f52019-06-24 16:06:37 -0700192
Gunnar Mills57d9c502018-09-14 14:42:34 -0500193 /** @brief sets the NTP servers.
194 * @param[in] value - vector of NTP servers.
195 */
Patrick Williams6aef7692021-05-01 06:39:41 -0500196 ServerList ntpServers(ServerList value) override;
Ratan Gupta497c0c92017-08-22 19:15:59 +0530197
Manojkiran Edaacd6dd52019-10-15 15:00:51 +0530198 /** @brief sets the Static DNS/nameservers.
199 * @param[in] value - vector of DNS servers.
200 */
201
202 ServerList staticNameServers(ServerList value) override;
203
Gunnar Mills57d9c502018-09-14 14:42:34 -0500204 /** @brief create Vlan interface.
205 * @param[in] id- VLAN identifier.
206 */
William A. Kennington IIIf4b4ff82019-04-09 19:06:52 -0700207 ObjectPath createVLAN(VlanId id);
Ratan Gupta5978dd12017-07-25 13:47:13 +0530208
Gunnar Mills57d9c502018-09-14 14:42:34 -0500209 /** @brief load the vlan info from the system
210 * and creates the ip address dbus objects.
211 * @param[in] vlanID- VLAN identifier.
212 */
213 void loadVLAN(VlanId vlanID);
Ratan Gupta92bc2fe2017-07-26 22:40:21 +0530214
Gunnar Mills57d9c502018-09-14 14:42:34 -0500215 /** @brief write the network conf file with the in-memory objects.
216 */
217 void writeConfigurationFile();
Ratan Gupta2b106532017-07-25 16:05:02 +0530218
Gunnar Mills57d9c502018-09-14 14:42:34 -0500219 /** @brief delete all dbus objects.
220 */
221 void deleteAll();
Ratan Guptae9c9b812017-09-22 17:15:37 +0530222
Ravi Tejaa5a09442020-07-17 00:57:33 -0500223 /** @brief set the default v4 gateway of the interface.
224 * @param[in] gateway - default v4 gateway of the interface.
225 */
226 std::string defaultGateway(std::string gateway) override;
227
228 /** @brief set the default v6 gateway of the interface.
229 * @param[in] gateway - default v6 gateway of the interface.
230 */
231 std::string defaultGateway6(std::string gateway) override;
232
Patrick Williams6aef7692021-05-01 06:39:41 -0500233 using EthernetInterfaceIntf::dhcpEnabled;
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 Gupta6dec3902017-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 Gupta6dec3902017-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