diff options
| author | Martin Winter <mwinter@opensourcerouting.org> | 2017-07-26 17:27:24 -0700 |
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-11-27 20:22:12 -0500 |
| commit | c11c4cc7d3af2ee73b0eb39f56bd8059773b2048 (patch) | |
| tree | 8aa23fa102601cfb33119a375f329348633ca4a8 | |
| parent | b431b5540fb1a6d3b067b3678f567e76bcdf775c (diff) | |
lib: add check for mpls kernel modules to diagnose_env()
Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
| -rw-r--r-- | tests/topotests/lib/topogen.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/topotests/lib/topogen.py b/tests/topotests/lib/topogen.py index 71a4d1b90a..177d908746 100644 --- a/tests/topotests/lib/topogen.py +++ b/tests/topotests/lib/topogen.py @@ -969,6 +969,12 @@ def diagnose_env(): if topotest.version_cmp(krel, '4.5') < 0: logger.info('LDPd tests will not run (have kernel "{}", but it requires 4.5)'.format(krel)) + # Test for MPLS Kernel modules available + if os.system('/sbin/modprobe -n mpls-router') != 0: + logger.info('LDPd tests will not run (missing mpls-router kernel module)') + if os.system('/sbin/modprobe -n mpls-iptunnel') != 0: + logger.info('LDPd tests will not run (missing mpls-iptunnel kernel module)') + # TODO remove me when we start supporting exabgp >= 4 try: output = subprocess.check_output(['exabgp', '-v']) |
