From 0e1b9be528e41c906ebe03f96e41e6b5fe0dabf2 Mon Sep 17 00:00:00 2001 From: Wenda Ni Date: Tue, 29 Sep 2020 18:04:54 -0700 Subject: [PATCH] Restore eth0 up in post-test clean up (#1452) Signed-off-by: Wenda Ni Co-authored-by: wenda.ni --- tests/test_portchannel.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/test_portchannel.py b/tests/test_portchannel.py index 96505cd1c874..4e03a81aacd4 100644 --- a/tests/test_portchannel.py +++ b/tests/test_portchannel.py @@ -264,6 +264,10 @@ def test_Portchannel_oper_down(self, dvs, testlog): tbl._del("PortChannel004") time.sleep(1) + # Restore eth0 up + dvs.servers[0].runcmd("ip link set up dev eth0") + time.sleep(1) + # Add Dummy always-pass test at end as workaroud # for issue when Flaky fail on final test it invokes module tear-down before retrying