Skip to content

Commit

Permalink
Add new generated specification files
Browse files Browse the repository at this point in the history
  • Loading branch information
mattiaswal committed Jan 10, 2025
1 parent 29031be commit 12b6146
Show file tree
Hide file tree
Showing 120 changed files with 2,093 additions and 2,023 deletions.
2 changes: 1 addition & 1 deletion test/case/ietf_hardware/ietf_hardware.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
- name: usb
case: usb/test.py

- name: usb two ports
- name: usb_two_ports
case: usb_two_ports/test.py
40 changes: 0 additions & 40 deletions test/case/ietf_hardware/usb/Readme.adoc

This file was deleted.

1 change: 1 addition & 0 deletions test/case/ietf_hardware/usb/Readme.adoc
40 changes: 40 additions & 0 deletions test/case/ietf_hardware/usb/usb.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
=== USB configuration
==== Description
This test checks if the configuration is consistent with hardware state,
and verifies whether the USB ports are correctly _locked_ (restricted from
use) and _unlocked_ (available for use) when they should. It also verifies
this behavior during reboot. This test does not involve the actual use of
the USB port; it only ensures the configured state is consistent with the
hardware state.

If this pass you can be certain that the configuration of the USB
port is handled correctly.

==== Topology
ifdef::topdoc[]
image::../../test/case/ietf_hardware/usb/topology.svg[USB configuration topology]
endif::topdoc[]
ifndef::topdoc[]
ifdef::testgroup[]
image::usb/topology.svg[USB configuration topology]
endif::testgroup[]
ifndef::testgroup[]
image::topology.svg[USB configuration topology]
endif::testgroup[]
endif::topdoc[]
==== Test sequence
. Set up topology and attach to target DUT
. Unlock all USB ports
. Verify that all USB ports are unlocked
. Lock all USB ports
. Verify that all USB ports are locked
. Remove all hardware configuration
. Verify that all USB ports are locked
. Unlock USB ports
. Verify that all USB ports are unlocked
. Save the configuration to startup configuration and reboot
. Verify USB port remain unlocked after reboot


<<<

27 changes: 0 additions & 27 deletions test/case/ietf_hardware/usb_two_ports/Readme.adoc

This file was deleted.

1 change: 1 addition & 0 deletions test/case/ietf_hardware/usb_two_ports/Readme.adoc
27 changes: 27 additions & 0 deletions test/case/ietf_hardware/usb_two_ports/usb_two_ports.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
=== USB configuration with two USB ports
==== Description
Test that the USB locked/unlocked configuration is consistent
when having two USB ports.

==== Topology
ifdef::topdoc[]
image::../../test/case/ietf_hardware/usb_two_ports/topology.svg[USB configuration with two USB ports topology]
endif::topdoc[]
ifndef::topdoc[]
ifdef::testgroup[]
image::usb_two_ports/topology.svg[USB configuration with two USB ports topology]
endif::testgroup[]
ifndef::testgroup[]
image::topology.svg[USB configuration with two USB ports topology]
endif::testgroup[]
endif::topdoc[]
==== Test sequence
. Set up topology and attach to target DUTs
. Lock the first USB port and unlock the second USB port
. Verify that the correct port is locked and the correct one is unlocked
. Unlock the first USB port, and lock the second USB port
. Verify that the correct port is locked and the correct one is unlocked


<<<

32 changes: 0 additions & 32 deletions test/case/ietf_interfaces/bridge_basic/Readme.adoc

This file was deleted.

1 change: 1 addition & 0 deletions test/case/ietf_interfaces/bridge_basic/Readme.adoc
32 changes: 32 additions & 0 deletions test/case/ietf_interfaces/bridge_basic/bridge_basic.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
=== Bridge basic
==== Description
Test basic connectivity to a bridge

....
PING --> br0 (10.0.0.2)
/
PC -------- target:data
....

==== Topology
ifdef::topdoc[]
image::../../test/case/ietf_interfaces/bridge_basic/topology.svg[Bridge basic topology]
endif::topdoc[]
ifndef::topdoc[]
ifdef::testgroup[]
image::bridge_basic/topology.svg[Bridge basic topology]
endif::testgroup[]
ifndef::testgroup[]
image::topology.svg[Bridge basic topology]
endif::testgroup[]
endif::topdoc[]
==== Test sequence
. Set up topology and attach to target DUT
. Configure single bridge with a single physical port, bridge @ IP 10.0.0.2
. Verify ping 10.0.0.2 is possible from host:data


<<<

44 changes: 0 additions & 44 deletions test/case/ietf_interfaces/bridge_fwd_dual_dut/Readme.adoc

This file was deleted.

1 change: 1 addition & 0 deletions test/case/ietf_interfaces/bridge_fwd_dual_dut/Readme.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
=== Bridge forwarding dual DUTs
==== Description
Ping through two bridges on two different DUTs.

....
.-------------------------. .-------------------------.
| [ DUT1 ] link | | link [ DUT2 ] |
| br0 -----|-------|----- br0 |
| / | | / \ |
| mgmt data1 | | data1 data2 mgmt |
'-------------------------' '-------------------------'
| | | | |
| | | | |
.---------------------------------------------------------------.
| mgmt1 data11 data21 data22 mgmt2 |
| [10.0.0.2] [10.0.0.3] [10.0.0.4] |
| (ns11) (ns20) (ns21) |
| |
| [ HOST ] |
'---------------------------------------------------------------'
....

==== Topology
ifdef::topdoc[]
image::../../test/case/ietf_interfaces/bridge_fwd_dual_dut/topology.svg[Bridge forwarding dual DUTs topology]
endif::topdoc[]
ifndef::topdoc[]
ifdef::testgroup[]
image::bridge_fwd_dual_dut/topology.svg[Bridge forwarding dual DUTs topology]
endif::testgroup[]
ifndef::testgroup[]
image::topology.svg[Bridge forwarding dual DUTs topology]
endif::testgroup[]
endif::topdoc[]
==== Test sequence
. Set up topology and attach to target DUT
. Configure a bridge with triple physical port
. Verify ping 10.0.0.3 and 10.0.0.4 from host:data11


<<<

44 changes: 0 additions & 44 deletions test/case/ietf_interfaces/bridge_fwd_sgl_dut/Readme.adoc

This file was deleted.

1 change: 1 addition & 0 deletions test/case/ietf_interfaces/bridge_fwd_sgl_dut/Readme.adoc
Loading

0 comments on commit 12b6146

Please sign in to comment.