Skip to content

Interface

Bases: Entity

Interface object for the Hosts.

Attributes:

Name Type Description
name str
interface_type str
ip_address IPv4Address
subnet IPv4Network
data_links list
max_range float
blocked_ips list
swarm bool

Functions

__init__

__init__(name: str = None, ip_address: str = None, subnet: str = None, interface_type: str = 'wired', data_links: list = None, max_range: float = 100, swarm: float = False)

Initiates the Interface

get_state

get_state()

Gets the internal state of the interface.

Returns:

Type Description
Dict[str, _]

dictionary containing the interface name, IP address, and subnet.