Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions internal/fptest/runtests.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ func testbedPathFromMetadata() (string, error) {
mpb.Metadata_TESTBED_DUT_8_LOOP_2_ATE: "dut_8_loop_2_ate.testbed",
mpb.Metadata_TESTBED_ATE_DUT1_4LINKS_DUT2_ATE: "ate_dut1_4links_dut2_ate.testbed",
mpb.Metadata_TESTBED_DUT_DUT_ATE_8LINKS: "dutdutate_8.testbed",
mpb.Metadata_TESTBED_DUT_1_LOOP_2_ATE: "dut_1_loop_2_ate.testbed",
}
testbedFile, ok := testbedToFile[testbed]
if !ok {
Expand Down
1 change: 1 addition & 0 deletions proto/metadata.proto
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ message Metadata {
TESTBED_DUT_8_LOOP_2_ATE = 18;
TESTBED_ATE_DUT1_4LINKS_DUT2_ATE = 19;
TESTBED_DUT_DUT_ATE_8LINKS = 20;
TESTBED_DUT_1_LOOP_2_ATE = 21;
}
// Testbed on which the test is intended to run.
Testbed testbed = 4;
Expand Down
12 changes: 8 additions & 4 deletions proto/metadata_go_proto/metadata.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

47 changes: 47 additions & 0 deletions topologies/dut_1_loop_2_ate.testbed
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# proto-file: github.com/openconfig/ondatra/blob/main/proto/testbed.proto
# proto-message: ondatra.Testbed

# This testbed provides a DUT with 1 physical loop (dut:port2 <-> dut:port3)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@navaneethyv just to note that the loop here is automatically done by the OCS

# and an ATE with 2 links to the DUT (ate:port1 <-> dut:port1 and
# ate:port2 <-> dut:port4).

duts {
id: "dut"
ports {
id: "port1"
}
ports {
id: "port2"
}
ports {
id: "port3"
}
ports {
id: "port4"
}
}

ates {
id: "ate"
ports {
id: "port1"
}
ports {
id: "port2"
}
}

links {
a: "dut:port1"
b: "ate:port1"
}

links {
a: "dut:port2"
b: "dut:port3"
}

links {
a: "dut:port4"
b: "ate:port2"
}
Loading