diff options
author | Johnathan Mantey <johnathanx.mantey@intel.com> | 2018-12-13 13:47:21 -0800 |
---|---|---|
committer | Johnathan Mantey <johnathanx.mantey@intel.com> | 2019-02-05 11:36:21 -0800 |
commit | 41ac50530ab0618155d9e8ae3be3a0abd59c24e4 (patch) | |
tree | 26873c4d987561d808c44652342d11dd4daec187 /net.cpp | |
parent | cb89c0e359f4fd6ce39884a4da6b57b093223829 (diff) | |
download | phosphor-host-ipmid-41ac50530ab0618155d9e8ae3be3a0abd59c24e4.tar.gz phosphor-host-ipmid-41ac50530ab0618155d9e8ae3be3a0abd59c24e4.zip |
Removing net.hpp and net.cpp because functionality moved
The functionality provided by net.hpp and net.cpp has been moved into
the channel_mgmt class.
Change-Id: I4820609f87f27ebe81d9b36f7b8e95a5262985ac
Signed-off-by: Johnathan Mantey <johnathanx.mantey@intel.com>
Diffstat (limited to 'net.cpp')
-rw-r--r-- | net.cpp | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/net.cpp b/net.cpp deleted file mode 100644 index 9de190f..0000000 --- a/net.cpp +++ /dev/null @@ -1,33 +0,0 @@ -#include "utils.hpp" - -#include <map> -#include <string> - -// Not sure if this should live in utils. Because it's really a per-system -// configuration, instead of just hard-coding channel 1 to be eth0, one could -// conceivably configure it however they pleased. -// -// In this design, channel 0 is the in-band host channel. - -namespace ipmi -{ -namespace network -{ - -extern const ipmi::network::ChannelEthMap ethdevices; - -// Given a channel number, return a matching ethernet device, or empty string -// if there is no match. -std::string ChanneltoEthernet(int channel) -{ - auto dev = ethdevices.find(channel); - if (dev == ethdevices.end()) - { - return ""; - } - - return dev->second; -} - -} // namespace network -} // namespace ipmi |