[v4,1/2] dts: make one link the default topology

Message ID 20251121195511.322005-1-abailey@iol.unh.edu (mailing list archive)
State New
Delegated to: Luca Vizzarro
Headers
Series [v4,1/2] dts: make one link the default topology |

Checks

Context Check Description
ci/checkpatch warning coding style issues

Commit Message

Andrew Bailey Nov. 21, 2025, 7:55 p.m. UTC
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: Dean Marx <dmarx@iol.unh.edu>
---
 dts/api/capabilities.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Patch

diff --git a/dts/api/capabilities.py b/dts/api/capabilities.py
index 243759668f..eafbd38afa 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.NO_LINK
 
 
 class NicCapability(IntEnum):