Skip to content

add unifi switch to libci - #13895

Merged
Nir-Az merged 3 commits into
realsenseai:developmentfrom
AviaAv:unifi
Apr 2, 2025
Merged

add unifi switch to libci#13895
Nir-Az merged 3 commits into
realsenseai:developmentfrom
AviaAv:unifi

Conversation

@AviaAv

@AviaAv AviaAv commented Mar 30, 2025

Copy link
Copy Markdown
Contributor

Tracked on: [LRS-1223]

@AviaAv
AviaAv requested a review from Nir-Az March 30, 2025 12:41
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

Copy link
Copy Markdown
Collaborator

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

Comment thread 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

Copy link
Copy Markdown
Collaborator

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):

@Nir-Az Nir-Az Apr 1, 2025

Copy link
Copy Markdown
Collaborator

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

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have 2 places with this hard coded data, please define it in 1 place and use on both
image

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@Nir-Az Nir-Az closed this Apr 2, 2025
@Nir-Az Nir-Az reopened this Apr 2, 2025
@Nir-Az
Nir-Az merged commit 3b888bd into realsenseai:development Apr 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants