summaryrefslogtreecommitdiffstats
path: root/user_channel/channel_mgmt.hpp
diff options
context:
space:
mode:
authorRichard Marian Thomaiyar <richard.marian.thomaiyar@linux.intel.com>2019-01-04 23:48:02 +0530
committerRichard Marian Thomaiyar <richard.marian.thomaiyar@linux.intel.com>2019-02-02 15:51:52 +0000
commit73906b9c9123218a7f8fc86db34957b965c53870 (patch)
treea975898cdeca7619a6aedb0d7deecdf7b33de707 /user_channel/channel_mgmt.hpp
parentfc71115b7836d6bf33550561cf5db213686f55a8 (diff)
downloadphosphor-host-ipmid-73906b9c9123218a7f8fc86db34957b965c53870.tar.gz
phosphor-host-ipmid-73906b9c9123218a7f8fc86db34957b965c53870.zip
Use network interface name as channel name
Use network interface name as channel name for the LAN channels. Mapper related to convert IPMI LAN reference to network interface is not needed anymore, and the same has been removed. Unit-test: verified ipmitool channel info for channel 1 & 2 and made sure it works fine as expected. Change-Id: Id87e2924a2a21a846507d6378b1b615000280f06 Signed-off-by: Richard Marian Thomaiyar <richard.marian.thomaiyar@linux.intel.com>
Diffstat (limited to 'user_channel/channel_mgmt.hpp')
-rw-r--r--user_channel/channel_mgmt.hpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/user_channel/channel_mgmt.hpp b/user_channel/channel_mgmt.hpp
index 3de5fa8..02f951b 100644
--- a/user_channel/channel_mgmt.hpp
+++ b/user_channel/channel_mgmt.hpp
@@ -97,6 +97,14 @@ class ChannelConfig
*/
bool isValidAuthType(const uint8_t chNum, const EAuthType& authType);
+ /** @brief function to get channel name from channel number
+ *
+ * @param[in] chNum - channel number index
+ *
+ * @return network channel interface name
+ */
+ std::string getChannelName(const uint8_t chNum);
+
/** @brief determines supported session type of a channel
*
* @param[in] chNum - channel number
@@ -396,14 +404,6 @@ class ChannelConfig
* @return channel protocol type
*/
EChannelProtocolType convertToProtocolTypeIndex(const std::string& value);
-
- /** @brief function to convert channel name to network interface name
- *
- * @param[in] value - channel interface name - ipmi centric
- *
- * @return network channel interface name
- */
- std::string convertToNetInterface(const std::string& value);
};
} // namespace ipmi
OpenPOWER on IntegriCloud