selfuryon / netdev

Asynchronous multi-vendor library for interacting with network devices
http://netdev.readthedocs.io/
Apache License 2.0
213 stars 44 forks source link

Support for ubiquiti_edge #20

Open newsera opened 5 years ago

newsera commented 5 years ago

Can we add support for ubiquiti_edge please?

selfuryon commented 5 years ago

Hello! Yes, of course, I can, but I haven't any Ubiquiti edge devices for testing. Do they have a virtual appliance? If not you can provide me some logs from CLI and I will add support for that!

newsera commented 5 years ago

Its similar to IOS Style.. I am able to interact with one of the platforms using "ubiquiti_edge" as the platform but its on Netmiko. Would love to see asyncio magic on it through netdev. Happy to test the code once its baked.

Device interaction looks like this:

(ubi) >enable
Password:********

(ubi) #configure 

(ubi) (Config)#exit

(ubi) #exit

(ubi) >quit

Netmiko supports it - https://github.com/ktbyers/netmiko/blob/develop/netmiko/ubiquiti/edge_ssh.py

selfuryon commented 5 years ago

Oh, it seems to be quite simple! I'll try to add it today\tomorrow!

newsera commented 5 years ago

Awesome. Thank you so much 👍

newsera commented 5 years ago

It supports terminal length command too just like Cisco.

https://dl.ubnt.com/guides/edgemax/EdgeSwitch_CLI_Command_Reference_UG.pdf

selfuryon commented 5 years ago

Hello! I've just added support (first attempt) for Ubiquity Edge Switch to dev branch but without committing to master dev and releasing new release until you test it. Can you test it? Maybe do you need some help with that?

newsera commented 5 years ago

Hello, Let me try this out during the weekend and will keep you posted. Thank you so much.

newsera commented 5 years ago

Tested today and it works great.. Tried both show commands as well as tried to configured an interface... write memory works as well. Awesome.. Good for merge to Release v1.0.