pywebui.tcpip.interfaces

Module Contents

Classes

Interface

Interface object.

InterfaceMethods

Encapsulates methods for manage interfaces.

class pywebui.tcpip.interfaces.Interface(attrs)

Interface object.

address

the IP address of interface.

Type

str

intf

the name of interface.

Type

str

mask

the network mask.

Type

str

mtu

the maximum transmission unit (MTU) size.

Type

int

pkt_recv

the received packets.

Type

int

pkt_sent

the sent packets.

Type

int

class pywebui.tcpip.interfaces.InterfaceMethods

Encapsulates methods for manage interfaces.

get_interfaces(self) List[Interface]

Returns the list of all interfaces.

get_interface(self, name) Interface

Returns details for selected interface.