waft.actions.system_actions.network_actions module¶
- class waft.actions.system_actions.network_actions.NetworkActions(node: BaseNode)¶
Bases:
object
Perform actions and verify states on the test system related to network
- get_dns_server_addresses() list[str | IPv4Address | IPv6Address] ¶
Get the IP addresses of the currently configured DNS servers.
- Returns:
List of DNS server addresses
- Return type:
list[str | IPv4Address | IPv6Address]
- get_domain_ips(domain: str) list[IPv4Address | IPv6Address] ¶
Get the ip addresses for a domain Returns: List of ip addresses
- get_domain_ips_for_domain_list(list_of_domains: list[str]) dict[str, list[IPv4Address | IPv6Address]] ¶
Get the domain ips for a list of domains :param list_of_domains: List of domains e.g. [‘doordash.com’, ‘cloudflare.com’]
Returns: A dictionary containing a list of ips mapped to the particular domain they belong to.
- get_public_ip_address() str ¶
Get the current public IP address of the system
- ipv4_available() bool ¶
Check if IPv4 is available on the system.
- ipv6_available() bool ¶
Check if IPv6 is available on the system.
- verify_internet_connection() None ¶
Asserts that the node has internet access