AristaSwitchClient-0.2.2
توضیحات
A quick small library to create quick custom scripts for Arista Switches
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | AristaSwitchClient-0.2.2 |
| نام | AristaSwitchClient |
| نسخه کتابخانه | 0.2.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Joe Recchia |
| ایمیل نویسنده | joerecchia@arista.com |
| آدرس صفحه اصلی | https://github.com/jrecchia1029/Arista-Switch-Client |
| آدرس اینترنتی | https://pypi.org/project/AristaSwitchClient/ |
| مجوز | - |
# Arista-Switch-Client
Quick python object to send commands to Arista switches.
Sends commands via Arista's EAPI using jsonrpclib or via SSH using netmiko
Switch.send_commands_via_eapi(cmds) uses the jsonrpclib Server object to execute commands on a switch
Switch.send_commands_via_netmiko(cmds) uses the netmiko python library to execute commands on a switch
Switch.send_commands(cmds, method=str) will by default use eapi (method="eapi") to send commands but can use ssh if you specify "ssh" in the method variable.
1. Install the project
pip install AristaSwitchClient
2. In a python file
from EOS.Switch import Switch
switch = Switch(ip_address="10.0.0.1", username="arista", password="arista")
print(switch.send_commands("show version"))
نحوه نصب
نصب پکیج whl AristaSwitchClient-0.2.2:
pip install AristaSwitchClient-0.2.2.whl
نصب پکیج tar.gz AristaSwitchClient-0.2.2:
pip install AristaSwitchClient-0.2.2.tar.gz