-
Notifications
You must be signed in to change notification settings - Fork 5k
add unifi switch to libci #13895
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add unifi switch to libci #13895
Conversation
| usage() | ||
| # See the end of the file for all the option handling | ||
|
|
||
| # we assume that if paramiko is not installed, unifi is not in use |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please also add to the wiki what should be pip installed
unit-tests/py/rspy/unifi.py
Outdated
| self.client = discover() # assuming no throw because it's done in the c'tor | ||
|
|
||
| if reset: | ||
| log.w("reset flag passed to unifi switch, ignoring it") # rebooting the switch takes a long time, over a minute |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please say this is comment out because the process takes over a minute
| def all_ports(self): | ||
| return self.POE_PORTS # usually we only want to work with PoE ports | ||
|
|
||
| def ports(self): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add functions description like we have on Acroname.
e.g.
"""
:return: a list of all ports currently occupied (and enabled)
"""
|
|
||
| def _create_unifi(): | ||
| try: | ||
| from rspy import unifi |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done

Tracked on: [LRS-1223]