Lines Matching refs:elmMode

2423 void MachineConfigFile::readAttachedNetworkMode(const xml::ElementNode &elmMode, bool fEnabled, NetworkAdapter &nic)
2427 if (elmMode.nameEquals("NAT"))
2431 elmMode.getAttributeValue("network", nic.nat.strNetwork);
2432 elmMode.getAttributeValue("hostip", nic.nat.strBindIP);
2433 elmMode.getAttributeValue("mtu", nic.nat.u32Mtu);
2434 elmMode.getAttributeValue("sockrcv", nic.nat.u32SockRcv);
2435 elmMode.getAttributeValue("socksnd", nic.nat.u32SockSnd);
2436 elmMode.getAttributeValue("tcprcv", nic.nat.u32TcpRcv);
2437 elmMode.getAttributeValue("tcpsnd", nic.nat.u32TcpSnd);
2439 if ((pelmDNS = elmMode.findChildElement("DNS")))
2446 if ((pelmAlias = elmMode.findChildElement("Alias")))
2453 if ((pelmTFTP = elmMode.findChildElement("TFTP")))
2460 readNATForwardRuleList(elmMode, nic.nat.llRules);
2462 else if ( elmMode.nameEquals("HostInterface")
2463 || elmMode.nameEquals("BridgedInterface"))
2467 elmMode.getAttributeValue("name", nic.strBridgedName); // optional bridged interface name
2469 else if (elmMode.nameEquals("InternalNetwork"))
2473 if (!elmMode.getAttributeValue("name", nic.strInternalNetworkName)) // required network name
2474 throw ConfigFileError(this, &elmMode, N_("Required InternalNetwork/@name element is missing"));
2476 else if (elmMode.nameEquals("HostOnlyInterface"))
2480 if (!elmMode.getAttributeValue("name", nic.strHostOnlyName)) // required network name
2481 throw ConfigFileError(this, &elmMode, N_("Required HostOnlyInterface/@name element is missing"));
2483 else if (elmMode.nameEquals("GenericInterface"))
2487 elmMode.getAttributeValue("driver", nic.strGenericDriver); // optional network attachment driver
2490 xml::NodesLoop nl(elmMode);
2505 else if (elmMode.nameEquals("NATNetwork"))
2509 if (!elmMode.getAttributeValue("name", nic.strNATNetworkName)) // required network name
2510 throw ConfigFileError(this, &elmMode, N_("Required NATNetwork/@name element is missing"));
2512 else if (elmMode.nameEquals("VDE"))
2517 elmMode.getAttributeValue("network", strVDEName); // optional network name