From ca4dbf331829d61fa9114c754249f3869953a13a Mon Sep 17 00:00:00 2001 From: Wenda Ni Date: Wed, 7 Jul 2021 23:53:03 +0000 Subject: [PATCH] Introduce _test_MirrorDestMoveLag Signed-off-by: Wenda Ni --- tests/test_mirror.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tests/test_mirror.py b/tests/test_mirror.py index 4a9cf489db..f9151c1acf 100644 --- a/tests/test_mirror.py +++ b/tests/test_mirror.py @@ -617,7 +617,7 @@ def test_MirrorDestMoveVlan(self, dvs, testlog): self._test_MirrorDestMoveVlan(dvs, testlog) self._test_MirrorDestMoveVlan(dvs, testlog, v6_encap=True) - def test_MirrorDestMoveLag(self, dvs, testlog, v6_encap=False): + def _test_MirrorDestMoveLag(self, dvs, testlog, v6_encap=False): """ This test tests mirror session destination move from non-LAG to LAG and back to non-LAG port @@ -630,8 +630,6 @@ def test_MirrorDestMoveLag(self, dvs, testlog, v6_encap=False): 7. Disable non-LAG monitor port 8. Remove mirror session """ - self.setup_db(dvs) - session = "TEST_SESSION" src_ip = "12.12.12.12" dst_ip = "13.13.13.13" @@ -755,6 +753,10 @@ def test_MirrorDestMoveLag(self, dvs, testlog, v6_encap=False): # remove mirror session self.remove_mirror_session(session) + def test_MirrorDestMoveLag(self, dvs, testlog): + self.setup_db(dvs) + + self._test_MirrorDestMoveLag(dvs, testlog) def create_acl_table(self, table, interfaces): tbl = swsscommon.Table(self.cdb, "ACL_TABLE")