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

bonding: Add support for mac base input interfaces #2697

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

Conversation

abdhaleegit
Copy link
Collaborator

In a contineous test environement setups where device names are not persistent accross os, having a unique key like mac addr as yaml input which does not change across reboots, dlpar or os install with different linux flavours, also the legacy interface name still works.

In a contineous test environement setups where device names
are not persistent accross os, having a unique key like mac
addr as yaml input which does not change across reboots,
dlpar or os install with different linux flavours, also
the legacy interface name still works.

Signed-off-by: Abdul Haleem <abdhalee@linux.vnet.ibm.com>
@@ -31,5 +31,3 @@ Requirements:
-----------------------
1. install netifaces using pip
command: pip install netifaces
2. Generate sshkey for your test partner to run the test uninterrupted.(Have a passwordless ssh between the peers)
3. Make sure IPs are set for interfaces to be used, via configuration file. ifup / ifdown should set the IPs back.
Copy link
Member

Choose a reason for hiding this comment

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

why remove this info are we doing this in the test?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

both the requirements are already automated into script.. so they are not needed

@@ -16,7 +16,7 @@ Note:
-----------------------------
Inputs Needed To Run Tests:
------------------------------
bond_interfaces --> Interfaces in the Host machine requird for Bonding
bond_interfaces --> Interfaces names or mac address space separated in the Host machine requird for Bonding
Copy link
Member

Choose a reason for hiding this comment

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

can you populate example string as well

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

sure

@@ -579,4 +585,5 @@ def error_check(self):
self.fail("Tests failed. Details:\n%s" % "\n".join(self.err))

def tearDown(self):
self.session.quit()
if self.host_interfaces:
self.session.quit()
Copy link
Member

Choose a reason for hiding this comment

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

why this change is this was bug earlier , if yes push this in another commit

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

this is to safely exit teardown.. if interfaces are not available.. or wrong user input

@Naresh-ibm
Copy link
Collaborator

@abdhaleegit are we pursuing this?

@abdhaleegit abdhaleegit self-assigned this Feb 28, 2024
@abdhaleegit
Copy link
Collaborator Author

@abdhaleegit are we pursuing this?

yes will pursue it... I will update with latest code

@PraveenPenguin
Copy link
Member

@abdhaleegit are we pursuing this?

yes will pursue it... I will update with latest code

Gentle reminder here , if not pursuing in this PR , please close

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.

3 participants