Skip to content

Commit

Permalink
Adding 8port testbed (openconfig#2591)
Browse files Browse the repository at this point in the history
* Initial commit for 8port testbed

* updated with string
  • Loading branch information
cprabha authored Jan 30, 2024
1 parent a97a28d commit 9082225
Show file tree
Hide file tree
Showing 6 changed files with 235 additions and 10 deletions.
1 change: 1 addition & 0 deletions cloudbuild/virtual.sh
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ function metadata_kne_topology() {
kne_topology_file["TESTBED_DUT_ATE_4LINKS"]="${topo_prefix}/dutate.textproto"
kne_topology_file["TESTBED_DUT_ATE_9LINKS_LAG"]="${topo_prefix}/dutate_lag.textproto"
kne_topology_file["TESTBED_DUT_DUT_ATE_2LINKS"]="${topo_prefix}/dutdutate.textproto"
kne_topology_file["TESTBED_DUT_ATE_8LINKS"]="${topo_prefix}/dutate.textproto"
for p in "${!kne_topology_file[@]}"; do
if grep -q "testbed.*${p}$" "${metadata_test_path}"/metadata.textproto; then
echo "${kne_topology_file[${p}]}"
Expand Down
1 change: 1 addition & 0 deletions internal/fptest/runtests.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ func testbedPathFromMetadata() (string, error) {
mpb.Metadata_TESTBED_DUT_ATE_4LINKS: "atedut_4.testbed",
mpb.Metadata_TESTBED_DUT_ATE_9LINKS_LAG: "atedut_9_lag.testbed",
mpb.Metadata_TESTBED_DUT_DUT_ATE_2LINKS: "dutdutate.testbed",
mpb.Metadata_TESTBED_DUT_ATE_8LINKS: "atedut_8.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 @@ -36,6 +36,7 @@ message Metadata {
TESTBED_DUT_ATE_4LINKS = 4;
TESTBED_DUT_ATE_9LINKS_LAG = 5;
TESTBED_DUT_DUT_ATE_2LINKS = 6;
TESTBED_DUT_ATE_8LINKS = 7;
}
// Testbed on which the test is intended to run.
Testbed testbed = 4;
Expand Down
25 changes: 15 additions & 10 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.

117 changes: 117 additions & 0 deletions topologies/atedut_8.binding
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
# proto-file: github.com/openconfig/featureprofiles/blob/main/topologies/proto/binding.proto
# proto-message: openconfig.testing.Binding

# This is an example static binding that demonstrates how to specify
# options to be used in conjunction with the atedut_*.testbed
# testbeds.

# These options are inherited throughout the entire binding for both the
# DUT and the ATE, unless overridden by a specific device or protocol.
options {
username: "username"
password: "password"
}

duts {
id: "dut"
name: "dut-hostname" # Change this to the device hostname.

# Options inherited by all protocols on this device unless
# overridden by individual protocols. Remove if not needed.
options {
insecure: true
}

# Options specific to gNMI. Remove if not needed.
gnmi {
target: "dut-proxy-hostname:6030"
}

# Options specific to gNOI
gnoi {
max_recv_msg_size: 40000000
}

# Before this binding can be used with a topology, add ports mapping
# from its topology ID to the actual port name on the device.
ports {
id: "port1"
name: "Ethernet1/1" # Change this to the actual port name.
}
ports {
id: "port2"
name: "Ethernet2/1" # Change this to the actual port name.
}
ports {
id: "port3"
name: "Ethernet3/1" # Change this to the actual port name.
}
ports {
id: "port4"
name: "Ethernet4/1" # Change this to the actual port name.
}
ports {
id: "port5"
name: "Ethernet5/1" # Change this to the actual port name.
}
ports {
id: "port6"
name: "Ethernet6/1" # Change this to the actual port name.
}
ports {
id: "port7"
name: "Ethernet7/1" # Change this to the actual port name.
}
ports {
id: "port8"
name: "Ethernet8/1" # Change this to the actual port name.
}
}

ates {
id: "ate"
name: "ate-hostname" # Change this to the Ixia chassis name.

# Options specific to the IxNetwork API. Remove if not needed.
ixnetwork {
# Change this to the Web UI hostname, if it differs from the Ixia
# chassis name.
target: "ixia-hostname"
skip_verify: true
}

# Before this binding can be used with a topology, add ports mapping
# from its topology ID to the actual port name on the device.
ports {
id: "port1"
name: "1/1" # Change this to the actual port name.
}
ports {
id: "port2"
name: "1/2" # Change this to the actual port name.
}
ports {
id: "port3"
name: "1/3" # Change this to the actual port name.
}
ports {
id: "port4"
name: "1/4" # Change this to the actual port name.
}
ports {
id: "port5"
name: "1/5" # Change this to the actual port name.
}
ports {
id: "port6"
name: "1/6" # Change this to the actual port name.
}
ports {
id: "port7"
name: "1/7" # Change this to the actual port name.
}
ports {
id: "port8"
name: "1/8" # Change this to the actual port name.
}
}
100 changes: 100 additions & 0 deletions topologies/atedut_8.testbed
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
# proto-file: github.com/openconfig/ondatra/blob/main/proto/testbed.proto
# proto-message: ondatra.Testbed

# This testbed provides a DUT and ATE with 8 links between them.

duts {
id: "dut"
ports {
id: "port1"
}
ports {
id: "port2"
}
ports {
id: "port3"
}
ports {
id: "port4"
}
ports {
id: "port5"
}
ports {
id: "port6"
}
ports {
id: "port7"
}
ports {
id: "port8"
}
}

ates {
id: "ate"
ports {
id: "port1"
}
ports {
id: "port2"
}
ports {
id: "port3"
}
ports {
id: "port4"
}
ports {
id: "port5"
}
ports {
id: "port6"
}
ports {
id: "port7"
}
ports {
id: "port8"
}
}

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

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

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

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

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

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

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

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

0 comments on commit 9082225

Please sign in to comment.