Skip to content

Commit

Permalink
test MirrorToLagAddRemove ipv6 encap
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 f9c211c commit ad07aa5
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 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, v6_encap=False):
"""
This test covers basic mirror session creation and removal operations
with destination port sits in a LAG
Expand All @@ -406,10 +406,10 @@ def _test_MirrorToLagAddRemove(self, dvs, testlog):
"""

session = "TEST_SESSION"
src_ip = "10.10.10.10"
dst_ip = "11.11.11.11"
src_ip = "10.10.10.10" if v6_encap == False else "fc00::10:10:10:10"
dst_ip = "11.11.11.11" if v6_encap == False else "fc00::11:11:11:11"
# dst ip in directly connected subnet
intf_addr = "11.11.11.0/24"
intf_addr = "11.11.11.0/24" if v6_encap == False else "fc00::11:11:11:0/112"

marker = dvs.add_log_marker()
# create mirror session
Expand Down Expand Up @@ -470,6 +470,7 @@ def test_MirrorToLagAddRemove(self, dvs, testlog):
self.setup_db(dvs)

self._test_MirrorToLagAddRemove(dvs, testlog)
self._test_MirrorToLagAddRemove(dvs, testlog, v6_encap=True)

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

0 comments on commit ad07aa5

Please sign in to comment.