Acquire the NIC netmask
The netmask value was not being pulled from the correct DBus path.
Change-Id: I4b163d5269737f7a9556d7b5ceafa25a5034d327
Signed-off-by: Johnathan Mantey <johnathanx.mantey@intel.com>
diff --git a/transporthandler.cpp b/transporthandler.cpp
index 72beebc..14a9980 100644
--- a/transporthandler.cpp
+++ b/transporthandler.cpp
@@ -196,9 +196,9 @@
{
try
{
- auto ipObjectInfo = ipmi::getIPObject(
- bus, ipmi::network::IP_INTERFACE,
- ipmi::network::ROOT, ipmi::network::IP_TYPE);
+ auto ipObjectInfo =
+ ipmi::getIPObject(bus, ipmi::network::IP_INTERFACE,
+ ipmi::network::ROOT, ethIP);
auto properties = ipmi::getAllDbusProperties(
bus, ipObjectInfo.second, ipObjectInfo.first,