Lines Matching refs:iface
41 const std::string CONFIG_KEY_ETH_IFACE = "iface";
91 std::string iface;
96 iface = cJSON_GetStringValue(ethIface);
99 iface = cJSON_GetStringValue(lanIface);
114 devCaps[iface] = caps;
116 const auto &fit = devCfgs.find(iface);
118 NETMGR_EXT_LOG_E("The iface=%{public}s device have set!", fit->first.c_str());
127 if (cJSON_GetObjectItem(item, CONFIG_KEY_ETH_IP.c_str()) && std::regex_search(iface, re)) {
128 devCfgs[iface] = config;
194 std::string iface;
205 std::string().swap(iface);
208 NETMGR_EXT_LOG_E("cfg new failed for devname[%{public}s]", iface.c_str());
211 ParserFileConfig(fileContent, iface, cfg);
213 if (!iface.empty() && std::regex_search(iface, re)) {
214 NETMGR_EXT_LOG_D("ReadFileList devname[%{public}s]", iface.c_str());
215 devCfgs[iface] = cfg;
223 bool EthernetConfiguration::WriteUserConfiguration(const std::string &iface, sptr<InterfaceConfiguration> &cfg)
239 GenCfgContent(iface, cfg, fileContent);
241 std::string filePath = std::string(USER_CONFIG_DIR) + FILE_OBLIQUE_LINE + iface;
473 void EthernetConfiguration::ParserFileConfig(const std::string &fileContent, std::string &iface,
476 ParseDevice(fileContent, iface);
482 void EthernetConfiguration::ParseDevice(const std::string &fileContent, std::string &iface)
490 iface = device;
637 void EthernetConfiguration::GenCfgContent(const std::string &iface, sptr<InterfaceConfiguration> cfg,
645 fileContent = fileContent + KEY_DEVICE + iface + WRAP;