openbmc-test-automation icon indicating copy to clipboard operation
openbmc-test-automation copied to clipboard

[OpenPower] test_openbmctool_network: Restore network settings after each test cases

Open tom-ky-wu opened this issue 1 year ago • 5 comments

Hi, Due to the need for continuous testing, I would like to inquire whether it's possible to implement a feature in the future that restores network settings after each test case ? Especially for SetHostName, addIP/removeIP, addVLAN/deleteVLAN and SetMACAddress

tom-ky-wu avatar Oct 27 '23 09:10 tom-ky-wu

@prkatti1 @swe12345 can you respond to this ?

gkeishin avatar Nov 08 '23 07:11 gkeishin

Thanks Tom. Good Catch. You can include the code for Setting back the original IP/ MAC and Hostname values. For VLAN test case, the add and delete is taken care of in the teardown. You can go ahead and make the required changes please.

swe12345 avatar Nov 09 '23 07:11 swe12345

I can make these changes else.

swe12345 avatar Nov 09 '23 07:11 swe12345

Thank you @swe12345 let us know when you make this changes..

Thank you @tom-ky-wu for the feedback

gkeishin avatar Nov 10 '23 05:11 gkeishin

we are no longer supporting openbmctool at the latest master code. If needed use the branch v4.0-stable for it ..

Please take a look at the above mailing list note https://lists.ozlabs.org/pipermail/openbmc/2023-December/034575.html . Thanks

gkeishin avatar Dec 08 '23 12:12 gkeishin