diff options
Diffstat (limited to 'redfish-core/lib/ethernet.hpp')
-rw-r--r-- | redfish-core/lib/ethernet.hpp | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/redfish-core/lib/ethernet.hpp b/redfish-core/lib/ethernet.hpp index 95632901af..e4e7b5af85 100644 --- a/redfish-core/lib/ethernet.hpp +++ b/redfish-core/lib/ethernet.hpp @@ -429,8 +429,8 @@ inline void const dbus::utility::ManagedObjectType& dbusData, boost::container::flat_set<IPv6AddressData>& ipv6Config) { - const std::string ipPathStart = - "/xyz/openbmc_project/network/" + ethifaceId; + const std::string ipPathStart = "/xyz/openbmc_project/network/" + + ethifaceId; // Since there might be several IPv6 configurations aligned with // single ethernet interface, loop over all of them @@ -527,8 +527,8 @@ inline void const dbus::utility::ManagedObjectType& dbusData, boost::container::flat_set<IPv4AddressData>& ipv4Config) { - const std::string ipPathStart = - "/xyz/openbmc_project/network/" + ethifaceId; + const std::string ipPathStart = "/xyz/openbmc_project/network/" + + ethifaceId; // Since there might be several IPv4 configurations aligned with // single ethernet interface, loop over all of them @@ -917,8 +917,8 @@ inline void handleMTUSizePatch(const std::string& ifaceId, const size_t mtuSize, const std::shared_ptr<bmcweb::AsyncResp>& asyncResp) { - sdbusplus::message::object_path objPath = - "/xyz/openbmc_project/network/" + ifaceId; + sdbusplus::message::object_path objPath = "/xyz/openbmc_project/network/" + + ifaceId; crow::connections::systemBus->async_method_call( [asyncResp](const boost::system::error_code& ec) { if (ec) @@ -1263,8 +1263,8 @@ inline void handleIPv4StaticPatch( for (nlohmann::json& thisJson : input) { - std::string pathString = - "IPv4StaticAddresses/" + std::to_string(entryIdx); + std::string pathString = "IPv4StaticAddresses/" + + std::to_string(entryIdx); if (!thisJson.is_null() && !thisJson.empty()) { @@ -1379,8 +1379,8 @@ inline void handleIPv4StaticPatch( deleteAndCreateIPAddress(IpVersion::IpV4, ifaceId, nicIpEntry->id, prefixLength, *gw, *addr, asyncResp); - nicIpEntry = - getNextStaticIpEntry(++nicIpEntry, ipv4Data.cend()); + nicIpEntry = getNextStaticIpEntry(++nicIpEntry, + ipv4Data.cend()); } else { @@ -1415,8 +1415,8 @@ inline void handleIPv4StaticPatch( } if (nicIpEntry != ipv4Data.cend()) { - nicIpEntry = - getNextStaticIpEntry(++nicIpEntry, ipv4Data.cend()); + nicIpEntry = getNextStaticIpEntry(++nicIpEntry, + ipv4Data.cend()); } entryIdx++; } @@ -1461,8 +1461,8 @@ inline void handleIPv6StaticAddressesPatch( getNextStaticIpEntry(ipv6Data.cbegin(), ipv6Data.cend()); for (const nlohmann::json& thisJson : input) { - std::string pathString = - "IPv6StaticAddresses/" + std::to_string(entryIdx); + std::string pathString = "IPv6StaticAddresses/" + + std::to_string(entryIdx); if (!thisJson.is_null() && !thisJson.empty()) { @@ -1522,8 +1522,8 @@ inline void handleIPv6StaticAddressesPatch( deleteAndCreateIPAddress(IpVersion::IpV6, ifaceId, nicIpEntry->id, prefix, "", *addr, asyncResp); - nicIpEntry = - getNextStaticIpEntry(++nicIpEntry, ipv6Data.cend()); + nicIpEntry = getNextStaticIpEntry(++nicIpEntry, + ipv6Data.cend()); } else { @@ -1557,8 +1557,8 @@ inline void handleIPv6StaticAddressesPatch( } if (nicIpEntry != ipv6Data.cend()) { - nicIpEntry = - getNextStaticIpEntry(++nicIpEntry, ipv6Data.cend()); + nicIpEntry = getNextStaticIpEntry(++nicIpEntry, + ipv6Data.cend()); } entryIdx++; } |