openbmc / openbmc-test-automation

Apache License 2.0
100 stars 92 forks source link

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

Open tom-ky-wu opened 9 months ago

tom-ky-wu commented 9 months ago

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

gkeishin commented 9 months ago

@prkatti1 @swe12345 can you respond to this ?

swe12345 commented 9 months ago

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 commented 9 months ago

I can make these changes else.

gkeishin commented 9 months ago

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

Thank you @tom-ky-wu for the feedback

gkeishin commented 8 months ago

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