summaryrefslogtreecommitdiffstats
path: root/transporthandler.cpp
diff options
context:
space:
mode:
authorNagaraju Goruganti <ngorugan@in.ibm.com>2017-09-21 07:44:17 -0500
committerNagaraju Goruganti <ngorugan@in.ibm.com>2017-10-11 23:25:21 -0500
commit1fe5c834b9ae4f09726dea8a1c7b3a05d87f1344 (patch)
tree4fbf65c1fe805165a86cf32c678bf0c0ffc252f9 /transporthandler.cpp
parente245e4e932279a112325dae06d7c12cf9e8ed833 (diff)
downloadphosphor-host-ipmid-1fe5c834b9ae4f09726dea8a1c7b3a05d87f1344.tar.gz
phosphor-host-ipmid-1fe5c834b9ae4f09726dea8a1c7b3a05d87f1344.zip
Don't set/get zeroconfig address if other IP address is present
Resolves openbmc/openbmc#2265 Change-Id: I65b54358f13231c78b3c6488a59b94bc9323484c Signed-off-by: Nagaraju Goruganti <ngorugan@in.ibm.com>
Diffstat (limited to 'transporthandler.cpp')
-rw-r--r--transporthandler.cpp16
1 files changed, 4 insertions, 12 deletions
diff --git a/transporthandler.cpp b/transporthandler.cpp
index e571d30..77c3849 100644
--- a/transporthandler.cpp
+++ b/transporthandler.cpp
@@ -63,19 +63,11 @@ ipmi_ret_t getNetworkData(uint8_t lan_param, uint8_t* data)
{
try
{
- auto ipObjectInfo = ipmi::getDbusObject(
- bus,
- ipmi::network::IP_INTERFACE,
- ipmi::network::ROOT,
- ipmi::network::IP_TYPE);
-
- auto properties = ipmi::getAllDbusProperties(
- bus,
- ipObjectInfo.second,
- ipObjectInfo.first,
- ipmi::network::IP_INTERFACE);
+ ipaddress = ipmi::getIPAddress(bus,
+ ipmi::network::IP_INTERFACE,
+ ipmi::network::ROOT,
+ ipmi::network::IP_TYPE);
- ipaddress = properties["Address"].get<std::string>();
}
// ignore the exception, as it is a valid condtion that
// system is not confiured with any ip.
OpenPOWER on IntegriCloud