Lines Matching +full:ex +full:-
7 // http://www.apache.org/licenses/LICENSE-2.0
40 * phosphor-host-ipmid/utils.cpp
80 return -1; in get_mac_addr()
98 catch (const std::exception& ex) in get_mac_addr() local
103 iface_name_, ex.what()); in get_mac_addr()
104 return -1; in get_mac_addr()
106 std::copy_n(ifr.ifr_addr.sa_data, sizeof(*mac), mac->octet); in get_mac_addr()
137 auto netdir = std::format("/run/systemd/network/00-bmc-{}.network.d", in set_mac_addr()
140 auto netfile = std::format("{}/60-ncsi-mac.conf", netdir); in set_mac_addr()
149 catch (const std::exception& ex) in set_mac_addr() local
152 mac_value, ex.what()); in set_mac_addr()
153 return -1; in set_mac_addr()
183 // Wait for 1 milliseconds - sometimes interface is still in set_mac_addr()
200 return -1; in set_mac_addr()
207 return -1; in set_mac_addr()
218 // undesirable because it will cause any inactive services to re-trigger in set_nic_hostless()
220 // code every 1s, we don't want to keep re-executing services. A fresh in set_nic_hostless()
237 stdplus::util::strCat("nic-hostless@", iface_name_, ".target")); in set_nic_hostless()
242 stdplus::util::strCat("nic-hostful@", iface_name_, ".target")); in set_nic_hostless()
245 // Specify --job-mode (see systemctl(1) for detail). in set_nic_hostless()
254 catch (const sdbusplus::exception::SdBusError& ex) in set_nic_hostless() local
257 ex.what()); in set_nic_hostless()