summaryrefslogtreecommitdiffstats
path: root/apphandler.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 /apphandler.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 'apphandler.cpp')
-rw-r--r--apphandler.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/apphandler.cpp b/apphandler.cpp
index 210544c..29adfa4 100644
--- a/apphandler.cpp
+++ b/apphandler.cpp
@@ -695,8 +695,11 @@ ipmi_ret_t ipmi_set_channel_access(ipmi_netfn_t netfn,
ipmi::network::IP_INTERFACE);
ipaddress = channelConfig.ipaddr.empty() ?
- properties["Address"].get<std::string>() :
- channelConfig.ipaddr;
+ ipmi::getIPAddress(bus,
+ ipmi::network::IP_INTERFACE,
+ ipmi::network::ROOT,
+ ipmi::network::IP_TYPE) :
+ channelConfig.ipaddr;
prefix = channelConfig.netmask.empty() ?
properties["PrefixLength"].get<uint8_t>() :
OpenPOWER on IntegriCloud