April 2018
Intermediate to advanced
280 pages
8h 37m
English
A port defines an endpoint for attaching a networking device such as a Network Interface Card. It also describes the associated networking configuration such as MAC address and IP address that is used on the port.
The following code snippet lists the available ports:
def list_ports(conn): for port in conn.network.ports(): print(port)