]> git.proxmox.com Git - mirror_frr.git/blobdiff - tests/topotests/bgp_communities_topo1/test_bgp_communities.py
*: reformat python files
[mirror_frr.git] / tests / topotests / bgp_communities_topo1 / test_bgp_communities.py
index 7d960d69167e0ea20faca249764302d00a681a9a..f2e54b24d6bc57b38b5f409c01b07397edf6402f 100644 (file)
@@ -54,6 +54,7 @@ from lib.common_config import (
     create_route_maps,
     create_prefix_lists,
     create_route_maps,
+    required_linux_kernel_version,
 )
 from lib.topolog import logger
 from lib.bgp import (
@@ -102,6 +103,11 @@ def setup_module(mod):
     * `mod`: module name
     """
 
+    # Required linux kernel version for this suite to run.
+    result = required_linux_kernel_version("4.15")
+    if result is not True:
+        pytest.skip("Kernel requirements are not met")
+
     testsuite_run_time = time.asctime(time.localtime(time.time()))
     logger.info("Testsuite start time: {}".format(testsuite_run_time))
     logger.info("=" * 40)