SPEC-3631: Add veth test 31/25431/1
authorCorentin LABBE <clabbe@baylibre.com>
Wed, 14 Oct 2020 07:18:58 +0000 (09:18 +0200)
committerCorentin LABBE <clabbe@baylibre.com>
Wed, 14 Oct 2020 07:43:52 +0000 (09:43 +0200)
Add veth test which adds an extra virtual network card for testing.

Change-Id: I4e6fef99009830cd016b2124b45b6815192b5ced
Bug-AGL: SPEC-3631
Signed-off-by: Corentin LABBE <clabbe@baylibre.com>
test-suites/short-smoke/network-veth.yaml [new file with mode: 0644]

diff --git a/test-suites/short-smoke/network-veth.yaml b/test-suites/short-smoke/network-veth.yaml
new file mode 100644 (file)
index 0000000..4416ff7
--- /dev/null
@@ -0,0 +1,10 @@
+metadata:
+  format: Lava-Test Test Definition 1.0
+  name: veth
+  description: "Virtual network card installation"
+run:
+  steps:
+    - ip link add veth0 type veth peer name veth1
+    - sleep 2
+    - ip addr add 10.1.0.1/24 dev veth0
+    - ip addr add 10.1.0.2/24 dev veth1