summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-07-18 18:12:40 +0200
committerChristian Poessinger <christian@poessinger.com>2021-07-18 18:12:40 +0200
commit62725916c44ebf4f810aa9e9d34f4bec70b0b1c0 (patch)
tree101fd353e537fa3b43dabaceb8e43968a10e4e6e
parent13dfa7e0756bac2d04695196bda42448ac398893 (diff)
downloadvyos-1x-62725916c44ebf4f810aa9e9d34f4bec70b0b1c0.tar.gz
vyos-1x-62725916c44ebf4f810aa9e9d34f4bec70b0b1c0.zip
smoketest: ospf: extend passive-interface debugging with kernel log
-rwxr-xr-xsmoketest/scripts/cli/test_protocols_ospf.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/smoketest/scripts/cli/test_protocols_ospf.py b/smoketest/scripts/cli/test_protocols_ospf.py
index 9ed912b54..623d40497 100755
--- a/smoketest/scripts/cli/test_protocols_ospf.py
+++ b/smoketest/scripts/cli/test_protocols_ospf.py
@@ -202,9 +202,10 @@ class TestProtocolsOSPF(VyOSUnitTestSHIM.TestCase):
for interface in interfaces:
self.assertIn(f' no passive-interface {interface}', frrconfig) # default
except:
- tmp1 = cmd('tail -n 250 /var/log/messages')
- tmp2 = cmd('vtysh -c "show run"')
- self.fail(f'Now we can hopefully see why OSPF fails:\n{tmp1}\n\n{tmp2}')
+ tmp1 = cmd('sudo dmesg')
+ tmp2 = cmd('tail -n 250 /var/log/messages')
+ tmp3 = cmd('vtysh -c "show run"')
+ self.fail(f'Now we can hopefully see why OSPF fails:\n{tmp1}\n\n{tmp2}\n\n{tmp3}')
def test_ospf_08_redistribute(self):
metric = '15'