Skip to content

Commit

Permalink
Introduce _test_MirrorDestMoveLag
Browse files Browse the repository at this point in the history
Signed-off-by: Wenda Ni <wonda.ni@gmail.com>
  • Loading branch information
wendani committed Jul 7, 2021
1 parent 8f45af5 commit ca4dbf3
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tests/test_mirror.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"
Expand Down Expand Up @@ -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")
Expand Down

0 comments on commit ca4dbf3

Please sign in to comment.