|
1 | 1 | # This test suite covers the functionality of mirror feature in SwSS
|
2 | 2 |
|
| 3 | +import platform |
| 4 | +import pytest |
3 | 5 | import time
|
| 6 | +from distutils.version import StrictVersion |
4 | 7 |
|
5 | 8 | from swsscommon import swsscommon
|
6 | 9 |
|
@@ -97,6 +100,7 @@ def get_mirror_session_status(self, name):
|
97 | 100 | assert False
|
98 | 101 | return status
|
99 | 102 |
|
| 103 | + |
100 | 104 | def test_MirrorAddRemove(self, dvs):
|
101 | 105 | """
|
102 | 106 | This test covers the basic mirror session creation and removal operations
|
@@ -223,6 +227,9 @@ def remove_fdb(self, vlan, mac):
|
223 | 227 | time.sleep(1)
|
224 | 228 |
|
225 | 229 |
|
| 230 | + # Ignore testcase in Debian Jessie |
| 231 | + # TODO: Remove this skip if Jessie support is no longer needed |
| 232 | + @pytest.mark.skipif(StrictVersion(platform.linux_distribution()[1]) <= StrictVersion('8.9'), reason="Debian 8.9 or before has no support") |
226 | 233 | def test_MirrorToVlanAddRemove(self, dvs):
|
227 | 234 | """
|
228 | 235 | This test covers basic mirror session creation and removal operation
|
@@ -427,6 +434,9 @@ def test_MirrorToLagAddRemove(self, dvs):
|
427 | 434 | self.remove_mirror_session(session)
|
428 | 435 |
|
429 | 436 |
|
| 437 | + # Ignore testcase in Debian Jessie |
| 438 | + # TODO: Remove this skip if Jessie support is no longer needed |
| 439 | + @pytest.mark.skipif(StrictVersion(platform.linux_distribution()[1]) <= StrictVersion('8.9'), reason="Debian 8.9 or before has no support") |
430 | 440 | def test_MirrorDestMoveVlan(self, dvs):
|
431 | 441 | """
|
432 | 442 | This test tests mirror session destination move from non-VLAN to VLAN
|
@@ -697,6 +707,7 @@ def remove_mirror_acl_dscp_rule(self, table, rule):
|
697 | 707 | tbl._del(table + "|" + rule)
|
698 | 708 | time.sleep(1)
|
699 | 709 |
|
| 710 | + |
700 | 711 | def test_AclBindMirror(self, dvs):
|
701 | 712 | """
|
702 | 713 | This test tests ACL associated with mirror session with DSCP value
|
|
0 commit comments