summaryrefslogtreecommitdiffstats
path: root/utils.hpp
diff options
context:
space:
mode:
authorPatrick Venture <venture@google.com>2017-11-15 14:29:18 -0800
committerBrad Bishop <bradleyb@fuzziesquirrel.com>2017-12-12 05:31:12 +0000
commitc7c1c3c2ff37a0e3d500e7eecd749595e8da7337 (patch)
tree39c7124d80eca76d316ea9a16793007bbd062848 /utils.hpp
parentef7773ccd644cc2356f9a53295d3e58439329f3c (diff)
downloadphosphor-host-ipmid-c7c1c3c2ff37a0e3d500e7eecd749595e8da7337.tar.gz
phosphor-host-ipmid-c7c1c3c2ff37a0e3d500e7eecd749595e8da7337.zip
multiple channel configuration support
Previously, the ipmi daemon only supported eth0 and hard-coded it to channel 1. This allows one to map via a configuration. The channel number provided is checked against a configuration to retrieve the ethernet device identifier, e.g. eth0. Tested: Ran on a quanta-q71l and was able to properly set MAC, IP, Netmask, Gateway IP, and then verified the data was set for the eth1 via `ip addr show eth1`. Change-Id: I92f63188297304e9454fd0d6fe32bc6cf84bb181 Signed-off-by: Patrick Venture <venture@google.com>
Diffstat (limited to 'utils.hpp')
-rw-r--r--utils.hpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/utils.hpp b/utils.hpp
index 55978fb..1699c52 100644
--- a/utils.hpp
+++ b/utils.hpp
@@ -161,7 +161,6 @@ namespace network
constexpr auto ROOT = "/xyz/openbmc_project/network";
constexpr auto SERVICE = "xyz.openbmc_project.Network";
-constexpr auto INTERFACE = "eth0";
constexpr auto IP_TYPE = "ipv4";
constexpr auto IPV4_PREFIX = "169.254";
constexpr auto IPV6_PREFIX = "fe80";
OpenPOWER on IntegriCloud