Skip to content

Commit

Permalink
Introduce _test_MirrorToLagAddRemove
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 cd2c779 commit f9c211c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/test_mirror.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ def remove_port_channel_member(self, channel, interface):
time.sleep(1)


def test_MirrorToLagAddRemove(self, dvs, testlog):
def _test_MirrorToLagAddRemove(self, dvs, testlog):
"""
This test covers basic mirror session creation and removal operations
with destination port sits in a LAG
Expand All @@ -404,7 +404,6 @@ def test_MirrorToLagAddRemove(self, dvs, testlog):
4. Remove mirror session
"""
self.setup_db(dvs)

session = "TEST_SESSION"
src_ip = "10.10.10.10"
Expand Down Expand Up @@ -467,6 +466,10 @@ def test_MirrorToLagAddRemove(self, dvs, testlog):
self.remove_mirror_session(session)
self.check_syslog(dvs, marker, "Detached next hop observer for destination IP {}".format(dst_ip), 1)

def test_MirrorToLagAddRemove(self, dvs, testlog):
self.setup_db(dvs)

self._test_MirrorToLagAddRemove(dvs, testlog)

# Ignore testcase in Debian Jessie
# TODO: Remove this skip if Jessie support is no longer needed
Expand Down

0 comments on commit f9c211c

Please sign in to comment.