From b81ebeb917a33afcaa2e8147a2fb2b6e01f49330 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Mon, 22 Jan 2018 19:54:36 +0100 Subject: tests: shell: add flowtable tests Add basic flowtable tests. Signed-off-by: Pablo Neira Ayuso --- tests/shell/testcases/flowtable/0002create_flowtable_0 | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 tests/shell/testcases/flowtable/0002create_flowtable_0 (limited to 'tests/shell/testcases/flowtable/0002create_flowtable_0') diff --git a/tests/shell/testcases/flowtable/0002create_flowtable_0 b/tests/shell/testcases/flowtable/0002create_flowtable_0 new file mode 100755 index 00000000..b6941c58 --- /dev/null +++ b/tests/shell/testcases/flowtable/0002create_flowtable_0 @@ -0,0 +1,12 @@ +#!/bin/bash + +set -e +$NFT add table t +$NFT add flowtable t f { hook ingress priority 10 \; devices = { eth0, wlan0 }\; } +if $NFT create flowtable t f { hook ingress priority 10 \; devices = { eth0, wlan0 }\; } 2>/dev/null ; then + echo "E: flowtable creation not failing on existing set" >&2 + exit 1 +fi +$NFT add flowtable t f { hook ingress priority 10 \; devices = { eth0, wlan0 }\; } + +exit 0 -- cgit v1.2.3