Home
last modified time | relevance | path

Searched refs:staticGateways (Results 1 – 5 of 5) sorted by relevance

/openbmc/phosphor-networkd/src/
H A Dstatic_gateway.cpp46 auto& staticGateways = parent.get().staticGateways; in delete_() local
48 for (auto it = staticGateways.begin(); it != staticGateways.end(); ++it) in delete_()
53 staticGateways.erase(it); in delete_()
H A Dethernet_interface.cpp139 for (const auto& [_, staticGateway] : info.staticGateways) in EthernetInterface()
252 if (auto it = staticGateways.find(*info.gateway); in addStaticGateway()
253 it != staticGateways.end()) in addStaticGateway()
259 staticGateways.emplace(*info.gateway, in addStaticGateway()
407 auto it = staticGateways.find(route); in staticGateway()
408 if (it == staticGateways.end()) in staticGateway()
410 it = std::get<0>(staticGateways.emplace( in staticGateway()
870 for (const auto& temp : staticGateways) in writeConfigurationFile()
H A Dtypes.hpp105 std::unordered_map<std::string, StaticGatewayInfo> staticGateways = {}; member
H A Dethernet_interface.hpp105 staticGateways; member in phosphor::network::EthernetInterface
/openbmc/phosphor-networkd/test/
H A Dtest_ethernet_interface.cpp265 EXPECT_THAT(interface.staticGateways, in TEST_F()
273 EXPECT_THAT(interface.staticGateways, in TEST_F()
283 interface.staticGateways.at(std::string("10.10.10.1"))->delete_(); in TEST_F()
284 interface.staticGateways.at(std::string("10.20.30.1"))->delete_(); in TEST_F()
285 EXPECT_EQ(interface.staticGateways.empty(), true); in TEST_F()
291 EXPECT_THAT(interface.staticGateways, in TEST_F()
299 EXPECT_THAT(interface.staticGateways, in TEST_F()