cterasdk.edge.network module

class cterasdk.edge.network.Network(gateway)

Bases: cterasdk.edge.base_command.BaseCommand

Gateway Network configuration APIs

enable_dhcp()

Enable DHCP

get_status()

Retrieve the network interface status

ifconfig()

Retrieve the ip configuration

ipconfig()

Retrieve the ip configuration

set_static_ipaddr(address, subnet, gateway, primary_dns_server, secondary_dns_server=None)

Set a Static IP Address

Parameters:
  • address (str) – The static address
  • subnet (str) – The subnet for the static address
  • gateway (str) – The default gateway
  • primary_dns_server (str) – The primary DNS server
  • secondary_dns_server (str,optinal) – The secondary DNS server, defaults to None
set_static_nameserver(primary_dns_server, secondary_dns_server=None)

Set the DNS Server addresses statically

:param str primary_dns_server, The primary DNS server :param str,optinal secondary_dns_server, The secondary DNS server, defaults to None

tcp_connect(address, port)

Test a TCP connection between the gateway and the provided address

Parameters:
  • address (str) – The address to test the connection to
  • port (int) – The port of the address to test the connection to