diff options
author | Jan Scheurich <jan.scheurich@ericsson.com> | 2017-06-23 16:48:34 +0000 |
---|---|---|
committer | Ben Pfaff <blp@ovn.org> | 2017-06-27 17:28:30 -0400 |
commit | 526cf4e1d6a8197d06d64efef54dff2eec988bd7 (patch) | |
tree | 9339a4f767e6dae8700e4c875bed6f9af0554540 /tests/testsuite.at | |
parent | 875ab13020b16269e0401b11fe0efc74e2cd952a (diff) | |
download | openvswitch-526cf4e1d6a8197d06d64efef54dff2eec988bd7.tar.gz |
tests: Added unit tests in packet-type-aware.at
First and second unit tests perform basic verification.
The third one is a triangular bridge setup test case. It tests dataplane
in non-PTAP and ptap bridges in conjunction with L2 and L3 GRE tunnels.
It uses veth ports, therefore requires root privileges.
A simplified version of the third test is added to system userspace unit tests.
GRE tunneling test setup for PTAP bridge
192.168.10.10 192.168.10.20 192.168.10.30
n1 n2 n3
| | |
+------o------+ +------o------+ +------o------+
| br-in1 | | br-in2 | | br-in3 |
| | | (PTAP) | | |
+------o------+ +------o------+ +------o------+
gre gre gre
10.0.0.1 (10.0.0.2) (10.0.0.3)
(20.0.0.1) 20.0.0.2 (20.0.0.3)
(30.0.0.1) LOCAL (30.0.0.2) LOCAL 30.0.0.3 LOCAL
+-----------o-+ +-----------o-+ +-----------o-+
| br-p1 | | br-p2 | | br-p3 |
+------o------+ +------o------+ +------o------+
p1-0 | | p2-0 | p3-0
p0-1 | | p0-2 | p0-3
+--o------------------------o-------------------------o--+
| br0 |
+--------------------------------------------------------+
GRE tunnel ports:
No Bridge Name Packet-Type Remote bridge & ports
-----------------------------------------------------------------------
1020 br-in1 gre-12 legacy-l2 br-in2 2010 (ptap)
1021 br-in1 gre-12_l3 legacy-l3 same
1030 br-in1 gre-13 legacy-l2 br-in3 3010 (l2)
2010 br-in2 gre-21 ptap br-in1 1020 (l2), 1021 (l3)
2030 br-in2 gre-23 ptap br-in3 3020 (l2), 3021 (l3)
3010 br-in1 gre-31 legacy-l2 br-in1 1030 (l2)
3020 br-in1 gre-32 legacy-l2 br-in2 2010 (ptap)
3021 br-in1 gre-32_l3 legacy-l3 same
Signed-off-by: Jan Scheurich <jan.scheurich@ericsson.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
Diffstat (limited to 'tests/testsuite.at')
-rw-r--r-- | tests/testsuite.at | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/testsuite.at b/tests/testsuite.at index 26f73572d..c7febc61c 100644 --- a/tests/testsuite.at +++ b/tests/testsuite.at @@ -77,3 +77,4 @@ m4_include([tests/ovn-sbctl.at]) m4_include([tests/ovn-controller.at]) m4_include([tests/ovn-controller-vtep.at]) m4_include([tests/mcast-snooping.at]) +m4_include([tests/packet-type-aware.at]) |