From bd92e603d09e7593224505d43ab705eefed3a393 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mattias=20Walstr=C3=B6m?= Date: Sat, 3 Jan 2026 15:13:59 +0100 Subject: [PATCH] test: spec: ospf_debug: Add missing autogenerated files --- test/case/routing/ospf_debug/test.adoc | 33 ++++++++++++ test/case/routing/ospf_debug/topology.svg | 63 +++++++++++++++++++++++ 2 files changed, 96 insertions(+) create mode 100644 test/case/routing/ospf_debug/test.adoc create mode 100644 test/case/routing/ospf_debug/topology.svg diff --git a/test/case/routing/ospf_debug/test.adoc b/test/case/routing/ospf_debug/test.adoc new file mode 100644 index 00000000..b42f26f8 --- /dev/null +++ b/test/case/routing/ospf_debug/test.adoc @@ -0,0 +1,33 @@ +=== OSPF Debug Logging + +ifdef::topdoc[:imagesdir: {topdoc}../../test/case/routing/ospf_debug] + +==== Description + +Verifies OSPF debug logging by configuring two routers (R1 and R2) with +OSPF on their interconnecting link. The test enables specific OSPF debug +categories and verifies that appropriate debug messages appear in +/var/log/debug. + +This test specifically validates: +- Debug messages appear when debug options are enabled +- No excessive debug messages when debug options are disabled +- Individual categories (ism, nsm, packet) can be toggled independently + +==== Topology + +image::topology.svg[OSPF Debug Logging topology, align=center, scaledwidth=75%] + +==== Sequence + +. Set up topology and attach to target DUTs +. Clean up old log files from previous test runs +. Configure R1 and R2 without debug enabled +. Wait for OSPF adjacency to form +. Enable OSPF debug logging on R1 +. Verify OSPF debug messages appear in log file +. Remove log file before disabling debug +. Disable OSPF debug logging on R1 +. Verify no OSPF debug messages when disabled + + diff --git a/test/case/routing/ospf_debug/topology.svg b/test/case/routing/ospf_debug/topology.svg new file mode 100644 index 00000000..8128a4ae --- /dev/null +++ b/test/case/routing/ospf_debug/topology.svg @@ -0,0 +1,63 @@ + + + + + + +ospf_debug + + + +PC + +PC + +mgmt1 + +mgmt2 + + + +R1 + +mgmt + +link + +R1 + 192.168.100.1/32 +(lo) + + + +PC:mgmt1--R1:mgmt + + + + +R2 + +link + +mgmt + +R2 + 192.168.200.1/32 +(lo) + + + +PC:mgmt2--R2:mgmt + + + + +R1:link--R2:link + +192.168.50.2/24 +192.168.50.1/24 + + +