mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-03 22:37:49 +00:00
tests: iproute2 VRF capability check examples
Example usage of iproute2_is_vrf_capable check in bgp_multi_vrf_topo1 and bgp_multi_vrf_topo2 topotests. Signed-off-by: David Schweizer <dschweizer@opensourcerouting.org>
This commit is contained in:
parent
0414a76446
commit
ddbc1ad2a0
@ -115,7 +115,7 @@ sys.path.append(os.path.join(CWD, "../lib/"))
|
||||
# Import topogen and topotest helpers
|
||||
from lib.topogen import Topogen, get_topogen
|
||||
from mininet.topo import Topo
|
||||
|
||||
from lib.topotest import iproute2_is_vrf_capable
|
||||
from lib.common_config import (
|
||||
step,
|
||||
verify_rib,
|
||||
@ -215,6 +215,10 @@ def setup_module(mod):
|
||||
if result is not True:
|
||||
pytest.skip("Kernel requirements are not met")
|
||||
|
||||
# iproute2 needs to support VRFs for this suite to run.
|
||||
if not iproute2_is_vrf_capable():
|
||||
pytest.skip("Installed iproute2 version does not support VRFs")
|
||||
|
||||
testsuite_run_time = time.asctime(time.localtime(time.time()))
|
||||
logger.info("Testsuite start time: {}".format(testsuite_run_time))
|
||||
logger.info("=" * 40)
|
||||
|
@ -71,7 +71,7 @@ sys.path.append(os.path.join(CWD, "../lib/"))
|
||||
# Import topogen and topotest helpers
|
||||
from lib.topogen import Topogen, get_topogen
|
||||
from mininet.topo import Topo
|
||||
|
||||
from lib.topotest import iproute2_is_vrf_capable
|
||||
from lib.common_config import (
|
||||
step,
|
||||
verify_rib,
|
||||
@ -164,6 +164,10 @@ def setup_module(mod):
|
||||
if result is not True:
|
||||
pytest.skip("Kernel requirements are not met")
|
||||
|
||||
# iproute2 needs to support VRFs for this suite to run.
|
||||
if not iproute2_is_vrf_capable():
|
||||
pytest.skip("Installed iproute2 version does not support VRFs")
|
||||
|
||||
testsuite_run_time = time.asctime(time.localtime(time.time()))
|
||||
logger.info("Testsuite start time: {}".format(testsuite_run_time))
|
||||
logger.info("=" * 40)
|
||||
|
Loading…
Reference in New Issue
Block a user