[PATCH v6 1/2] dts: make one link the default topology

Patrick Robb probb at iol.unh.edu
Wed Mar 11 17:03:06 CET 2026


From: Andrew Bailey <abailey at iol.unh.edu>

Currently the default topology for test suites when not specified
is two link. However, the majority of the DPDK functions tested
in DTS can be tested with a single link. It is more intuitive for
a testsuite or testcase lacking a topology decorator to default
to the more basic requirement of 1 link, and force tests which
really do require two link to include decorators explicitly
saying so.

Signed-off-by: Andrew Bailey <abailey at iol.unh.edu>
Signed-off-by: Dean Marx <dmarx at iol.unh.edu>
Reviewed-by: Patrick Robb <probb at iol.unh.edu>
---
 dts/api/capabilities.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dts/api/capabilities.py b/dts/api/capabilities.py
index 2d0cd65854..09bc538523 100644
--- a/dts/api/capabilities.py
+++ b/dts/api/capabilities.py
@@ -63,7 +63,7 @@ class LinkTopology(IntEnum):
     @classmethod
     def default(cls) -> "LinkTopology":
         """The default topology required by test cases if not specified otherwise."""
-        return cls.TWO_LINKS
+        return cls.ONE_LINK
 
 
 class NicCapability(IntEnum):
-- 
2.49.0



More information about the dev mailing list