summaryrefslogtreecommitdiffstats
path: root/dcmihandler.cpp
diff options
context:
space:
mode:
authorJohnathan Mantey <johnathanx.mantey@intel.com>2018-12-13 13:17:56 -0800
committerJohnathan Mantey <johnathanx.mantey@intel.com>2019-02-04 12:37:45 -0800
commit74a2102e1fcf15097878449cd2989b5facd9b956 (patch)
tree1d06bef3cb4d1c7793637647e912779fbc7daf09 /dcmihandler.cpp
parent2dfe7f8da32764d604b3f6bf893afa9b29ff9a7c (diff)
downloadphosphor-host-ipmid-74a2102e1fcf15097878449cd2989b5facd9b956.tar.gz
phosphor-host-ipmid-74a2102e1fcf15097878449cd2989b5facd9b956.zip
IPMI channel to NIC device mapping modified within JSON config file
The IPMI to NIC channel mapping was done using a hard coded scheme. The scheme used generic channel names which were then mapped to specific device names. The hard coded generic to specific naming convention is removed, and the JSON file contains the device name directly. Change-Id: Ibc6821cae5a26f2666467aba5346d364053f2582 Signed-off-by: Johnathan Mantey <johnathanx.mantey@intel.com>
Diffstat (limited to 'dcmihandler.cpp')
-rw-r--r--dcmihandler.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/dcmihandler.cpp b/dcmihandler.cpp
index e1a44b5..15ab26c 100644
--- a/dcmihandler.cpp
+++ b/dcmihandler.cpp
@@ -2,7 +2,7 @@
#include "dcmihandler.hpp"
-#include "net.hpp"
+#include "user_channel/channel_layer.hpp"
#include "utils.hpp"
#include <host-ipmid/ipmid-api.h>
@@ -247,8 +247,7 @@ bool getDHCPEnabled()
{
sdbusplus::bus::bus bus{ipmid_get_sd_bus_connection()};
- auto ethdevice =
- ipmi::network::ChanneltoEthernet(ethernetDefaultChannelNum);
+ auto ethdevice = ipmi::getChannelName(ethernetDefaultChannelNum);
auto ethernetObj =
ipmi::getDbusObject(bus, ethernetIntf, networkRoot, ethdevice);
auto service = ipmi::getService(bus, ethernetIntf, ethernetObj.first);
OpenPOWER on IntegriCloud