import json
import time
import pytest
+import platform
from copy import deepcopy
-
+from lib.topotest import version_cmp
# Save the Current Working Directory to find configuration files.
CWD = os.path.dirname(os.path.realpath(__file__))
sys.path.append(os.path.join(CWD, "../"))
import time
import json
import pytest
-
+import platform
# Save the Current Working Directory to find configuration files.
CWD = os.path.dirname(os.path.realpath(__file__))
sys.path.append(os.path.join(CWD, "../"))
# Import topogen and topotest helpers
from lib.topogen import Topogen, get_topogen
from mininet.topo import Topo
-
+from lib.topotest import version_cmp
from lib.common_config import (
start_topology,
write_test_header,
# Creating configuration from JSON
build_config_from_json(tgen, topo)
+ if version_cmp(platform.release(), '4.19') < 0:
+ error_msg = ('These tests will not run. (have kernel "{}", '
+ 'requires kernel >= 4.19)'.format(platform.release()))
+ pytest.skip(error_msg)
+
# Don't run this test if we have any failure.
if tgen.routers_have_failure():
pytest.skip(tgen.errors)
import time
import json
import pytest
-
+import platform
# Save the Current Working Directory to find configuration files.
CWD = os.path.dirname(os.path.realpath(__file__))
sys.path.append(os.path.join(CWD, "../"))
# Import topogen and topotest helpers
from lib.topogen import Topogen, get_topogen
from mininet.topo import Topo
-
+from lib.topotest import version_cmp
from lib.common_config import (
start_topology,
write_test_header,
# Creating configuration from JSON
build_config_from_json(tgen, topo)
+ if version_cmp(platform.release(), '4.19') < 0:
+ error_msg = ('These tests will not run. (have kernel "{}", '
+ 'requires kernel >= 4.19)'.format(platform.release()))
+ pytest.skip(error_msg)
+
# Don't run this test if we have any failure.
if tgen.routers_have_failure():
pytest.skip(tgen.errors)
import time
import json
import pytest
-
+import platform
# Save the Current Working Directory to find configuration files.
CWD = os.path.dirname(os.path.realpath(__file__))
sys.path.append(os.path.join(CWD, "../"))
# Import topogen and topotest helpers
from mininet.topo import Topo
from lib.topogen import Topogen, get_topogen
-
+from lib.topotest import version_cmp
# Import topoJson from lib, to create topology and initial configuration
from lib.common_config import (
start_topology,
# Creating configuration from JSON
build_config_from_json(tgen, topo)
+ if version_cmp(platform.release(), '4.19') < 0:
+ error_msg = ('These tests will not run. (have kernel "{}", '
+ 'requires kernel >= 4.19)'.format(platform.release()))
+ pytest.skip(error_msg)
+
# Checking BGP convergence
global BGP_CONVERGENCE
global ADDR_TYPES
import time
import json
import pytest
+import platform
# Save the Current Working Directory to find configuration files.
CWD = os.path.dirname(os.path.realpath(__file__))
# Import topogen and topotest helpers
from mininet.topo import Topo
from lib.topogen import Topogen, get_topogen
-
+from lib.topotest import version_cmp
# Import topoJson from lib, to create topology and initial configuration
from lib.common_config import (
start_topology,
# Creating configuration from JSON
build_config_from_json(tgen, topo)
+ if version_cmp(platform.release(), '4.19') < 0:
+ error_msg = ('These tests will not run. (have kernel "{}", '
+ 'requires kernel >= 4.19)'.format(platform.release()))
+ pytest.skip(error_msg)
+
# Checking BGP convergence
global BGP_CONVERGENCE
global ADDR_TYPES
import time
import inspect
import pytest
+import platform
from time import sleep
# Save the Current Working Directory to find configuration files.
from lib import topotest
from lib.topogen import Topogen, TopoRouter, get_topogen
from lib.topolog import logger
-
+from lib.topotest import version_cmp
# Required to instantiate the topology builder class.
from mininet.topo import Topo
# Creating configuration from JSON
build_config_from_json(tgen, topo)
+ if version_cmp(platform.release(), '4.19') < 0:
+ error_msg = ('These tests will not run. (have kernel "{}", '
+ 'requires kernel >= 4.19)'.format(platform.release()))
+ pytest.skip(error_msg)
+
# Don't run this test if we have any failure.
if tgen.routers_have_failure():
pytest.skip(tgen.errors)
import json
import time
import pytest
+import platform
from time import sleep
from copy import deepcopy
from lib import topotest
from lib.topogen import Topogen, TopoRouter, get_topogen
from lib.topolog import logger
-
+from lib.topotest import version_cmp
# Required to instantiate the topology builder class.
from mininet.topo import Topo
# Creating configuration from JSON
build_config_from_json(tgen, topo)
+ if version_cmp(platform.release(), '4.19') < 0:
+ error_msg = ('These tests will not run. (have kernel "{}", '
+ 'requires kernel >= 4.19)'.format(platform.release()))
+ pytest.skip(error_msg)
+
# Api call verify whether BGP is converged
ADDR_TYPES = check_address_types()
from os import path as os_path
import sys
from json import load as json_load
-
+import platform
+from lib.topotest import version_cmp
# Required to instantiate the topology builder class.
from lib.topogen import Topogen, get_topogen
from mininet.topo import Topo
# Creating configuration from JSON
build_config_from_json(tgen, topo)
+ if version_cmp(platform.release(), '4.19') < 0:
+ error_msg = ('These tests will not run. (have kernel "{}", '
+ 'requires kernel >= 4.19)'.format(platform.release()))
+ pytest.skip(error_msg)
+
# Checking BGP convergence
global bgp_convergence
import json
import pytest
import time
-
+import platform
# Save the Current Working Directory to find configuration files.
CWD = os.path.dirname(os.path.realpath(__file__))
sys.path.append(os.path.join(CWD, "../"))
# Import topoJson from lib, to create topology and initial configuration
from lib.topogen import Topogen, get_topogen
from mininet.topo import Topo
-
+from lib.topotest import version_cmp
from lib.common_config import (
start_topology,
write_test_header,
# Creating configuration from JSON
build_config_from_json(tgen, topo)
+ if version_cmp(platform.release(), '4.19') < 0:
+ error_msg = ('These tests will not run. (have kernel "{}", '
+ 'requires kernel >= 4.19)'.format(platform.release()))
+ pytest.skip(error_msg)
+
# Checking BGP convergence
global bgp_convergence, ADDR_TYPES
import json
import time
import pytest
+import platform
from copy import deepcopy
# Save the Current Working Directory to find configuration files.
# Import topogen and topotest helpers
from lib.topogen import Topogen, get_topogen
from mininet.topo import Topo
-
+from lib.topotest import version_cmp
from lib.common_config import (
step,
verify_rib,
# Creating configuration from JSON
build_config_from_json(tgen, topo)
+ if version_cmp(platform.release(), '4.19') < 0:
+ error_msg = ('These tests will not run. (have kernel "{}", '
+ 'requires kernel >= 4.19)'.format(platform.release()))
+ pytest.skip(error_msg)
+
global BGP_CONVERGENCE
global ADDR_TYPES
ADDR_TYPES = check_address_types()
import json
import time
import pytest
+import platform
from copy import deepcopy
from time import sleep
-
+from lib.topotest import version_cmp
# Save the Current Working Directory to find configuration files.
CWD = os.path.dirname(os.path.realpath(__file__))
# Creating configuration from JSON
build_config_from_json(tgen, topo)
+ if version_cmp(platform.release(), '4.19') < 0:
+ error_msg = ('These tests will not run. (have kernel "{}", '
+ 'requires kernel >= 4.19)'.format(platform.release()))
+ pytest.skip(error_msg)
+
global BGP_CONVERGENCE
global ADDR_TYPES
ADDR_TYPES = check_address_types()