-
Notifications
You must be signed in to change notification settings - Fork 124
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
base: master
Are you sure you want to change the base?
Conversation
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. |
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.
why remove this info are we doing this in the test?
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.
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 |
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.
can you populate example string as well
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.
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() |
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.
why this change is this was bug earlier , if yes push this in another commit
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.
this is to safely exit teardown.. if interfaces are not available.. or wrong user input
@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 |
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.