filmov
tv
How to Use the Python dir(), type(), and help() Functions with Netmiko

Показать описание
In this video, I talk about how to use the Python dir(), type() and help() functions with the Netmiko library.
from netmiko import ConnectHandler
cisco_device = {
"device_type": "cisco_ios_telnet",
"username": "rviews",
}
connection = ConnectHandler(**cisco_device)
# dir() - lists all the attributes and methods of an object.
# type() - returns the type (or class) of an object.
# help() - provides detailed documentation on an object.
#networkautomation #pythonforbeginners #python
from netmiko import ConnectHandler
cisco_device = {
"device_type": "cisco_ios_telnet",
"username": "rviews",
}
connection = ConnectHandler(**cisco_device)
# dir() - lists all the attributes and methods of an object.
# type() - returns the type (or class) of an object.
# help() - provides detailed documentation on an object.
#networkautomation #pythonforbeginners #python