Loading src/network.cpp +9 −0 Changes for src/network.cpp: 9 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -598,6 +598,15 @@ void NetworkManager::applyAll() { // Add 127.0.0.1/8 to lo addAddress("lo", "127.0.0.1/8"); // The built-in bonding driver creates bond0 at boot (max_bonds // defaults to 1); without a .netdev and without members it's not ours if (!findNetDev("bond0") && linkKind("bond0") == "bond" && readSysfs("bond0", "bonding/slaves").empty()) { std::string why; if (!deleteUnconfiguredLink("bond0", &why)) std::cerr << "[syslite/net] " << why << std::endl; } applyNetDevs(); auto cfgOf = [this](const std::string &i) { return configFor(i); }; auto isNetDev = [this](const std::string &i) { return findNetDev(i) != nullptr; }; Loading Loading
src/network.cpp +9 −0 Changes for src/network.cpp: 9 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -598,6 +598,15 @@ void NetworkManager::applyAll() { // Add 127.0.0.1/8 to lo addAddress("lo", "127.0.0.1/8"); // The built-in bonding driver creates bond0 at boot (max_bonds // defaults to 1); without a .netdev and without members it's not ours if (!findNetDev("bond0") && linkKind("bond0") == "bond" && readSysfs("bond0", "bonding/slaves").empty()) { std::string why; if (!deleteUnconfiguredLink("bond0", &why)) std::cerr << "[syslite/net] " << why << std::endl; } applyNetDevs(); auto cfgOf = [this](const std::string &i) { return configFor(i); }; auto isNetDev = [this](const std::string &i) { return findNetDev(i) != nullptr; }; Loading