Skip to content
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

Adding check if the test interface tested is a bonding slave #5782

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

vaishnavibhat
Copy link
Contributor

The patch is to test if the interface is a slave interface or a regular one. when mac address is passed as test param, return only for a regular interface or a bond master interface.

@mr-avocado
Copy link

mr-avocado bot commented Oct 20, 2023

Dear contributor,
Avocado is currently under sprint #103, which is due to release an LTS (Long Term Stability) release.
Please avoid merging changes that do not fall into these categories:

  • Bug fixes
  • Usability Improvements
  • Documentation updates

As for the Avocado utility modules (“avocado.utils”) it is OK to introduce new functionality,
but changes to the existing APIs (including interface and behavior) should be avoided.
These kind of changes should wait until sprint #104.

@richtja
Copy link
Contributor

richtja commented Oct 23, 2023

Hello @vaishnavibhat, could you please correct the indentation to ensure that the CI will pass? We will proceed with the review once the CI successfully passes. Thank you.

The patch is to test if the interface is a slave interface
or a regular one. when mac address is passed as test param, return
only for a regular interface or a bond master interface.

Signed-off-by: Vaishnavi Bhat <vaishnavi@linux.vnet.ibm.com>
Copy link
Contributor

@richtja richtja left a comment

Choose a reason for hiding this comment

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

Hi @vaishnavibhat, sorry for the late reply. The style checks are still complaining, please have a look. Thank you.

return True
except (NWException, IndexError):
raise NWException("Could not get interface detail.")
return False
Copy link
Contributor

Choose a reason for hiding this comment

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

IMO, this return shouldn't be part of the except clause, am I right.

@richtja
Copy link
Contributor

richtja commented Mar 22, 2024

Hi @vaishnavibhat gentle ping here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Review Requested
Development

Successfully merging this pull request may close these issues.

None yet

2 participants