def __init__(self, *args, **kwargs): """Initialise wifi interface.""" # WLAN parameters self.band = kwargs.get("band", None) self.authentication = "NONE" self.parse_device_options(*args, **kwargs) self.iface_dut = self.iface_wifi = self.kwargs.get("dut_interface", "wlan1") # introducing same hack as lan_clients till json schema does not get updated if not self.dev_array: self.legacy_add = True self.dev_array = "wlan_clients" # This is being maintained for backward compatibility. # Ideally LAN network should be decided after connecting to SSID self.lan_network = ipaddress.IPv4Interface( kwargs.pop("lan_network", "192.168.1.0/24") ).network self.lan_gateway = ipaddress.IPv4Interface( kwargs.pop("lan_gateway", "192.168.1.1/24") ).ip self.dns = DNS(self, {}, {}) self.dhcp = DHCP.get_dhcp_object("client", self)
def __init__(self, *args, **kwargs): self.parse_device_options(*args, **kwargs) # introducing a hack till json schema does not get updated if not self.dev_array: self.legacy_add = True self.dev_array = "wan_clients" self.dns = DNS(self, kwargs.get("options", {}), kwargs.get("aux_ip", {})) self.firewall = NwFirewall(self)
def __init__(self, *args, **kwargs): """Instance initialization.""" self.args = args self.kwargs = kwargs self.own_number = self.kwargs.get("number", "3000") self.num_port = self.kwargs.get("num_port", "5060") self.config_name = "pjsip.conf" self.pjsip_local_url = kwargs.get("local_site", None) self.pjsip_prompt = ">>>" self.profile[self.name] = self.profile.get(self.name, {}) softphone_profile = self.profile[self.name] = {} softphone_profile["on_boot"] = self.install_softphone self.dns = DNS(self, kwargs.get("options", {}), kwargs.get("aux_ip", {}))
def __init__(self, *args, **kwargs): self.parse_device_options(*args, **kwargs) # introducing a hack till json schema does not get updated if not self.dev_array: self.legacy_add = True self.dev_array = "lan_clients" self.lan_network = ipaddress.IPv4Interface( six.text_type(kwargs.pop("lan_network", "192.168.1.0/24"))).network self.lan_gateway = ipaddress.IPv4Interface( six.text_type(kwargs.pop("lan_gateway", "192.168.1.1/24"))).ip self.dns = DNS(self, {}, {}) self.nw_util_ping = Ping(self)