Skip to content

Conversation

@AviaAv
Copy link
Contributor

@AviaAv AviaAv commented Mar 30, 2025

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

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
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):
Copy link
Collaborator

@Nir-Az Nir-Az Apr 1, 2025

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
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
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
17 of 25 checks passed
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