diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2019-03-20 11:32:58 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2019-03-20 11:43:29 +0100 |
commit | 4795a994e2810c63d8da19b5f75854db470e4a6c (patch) | |
tree | 69301ad7421e375adbff8556113cb6c6b2409cfd /tests/shell/testcases | |
parent | d8081e6183b219b2b3d1eccea07fc2e870105f08 (diff) |
src: use 'flow add' syntax
As discussed during NFWS 2018. Old syntax is stilled allowed.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tests/shell/testcases')
-rwxr-xr-x | tests/shell/testcases/flowtable/0001flowtable_0 | 2 | ||||
-rwxr-xr-x | tests/shell/testcases/flowtable/0005delete_in_use_1 | 2 | ||||
-rw-r--r-- | tests/shell/testcases/flowtable/dumps/0001flowtable_0.nft | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/tests/shell/testcases/flowtable/0001flowtable_0 b/tests/shell/testcases/flowtable/0001flowtable_0 index 90b23dc3..8336ec5a 100755 --- a/tests/shell/testcases/flowtable/0001flowtable_0 +++ b/tests/shell/testcases/flowtable/0001flowtable_0 @@ -7,7 +7,7 @@ EXPECTED='table inet t { } chain c { - flow offload @f + flow add @f } }' diff --git a/tests/shell/testcases/flowtable/0005delete_in_use_1 b/tests/shell/testcases/flowtable/0005delete_in_use_1 index 149d6444..ef52620d 100755 --- a/tests/shell/testcases/flowtable/0005delete_in_use_1 +++ b/tests/shell/testcases/flowtable/0005delete_in_use_1 @@ -4,7 +4,7 @@ set -e $NFT add table x $NFT add chain x x $NFT add flowtable x y { hook ingress priority 0\; devices = { lo }\;} -$NFT add rule x x flow offload @y +$NFT add rule x x flow add @y $NFT delete flowtable x y || exit 0 echo "E: delete flowtable in use" diff --git a/tests/shell/testcases/flowtable/dumps/0001flowtable_0.nft b/tests/shell/testcases/flowtable/dumps/0001flowtable_0.nft index 6a1c7b81..629bfe81 100644 --- a/tests/shell/testcases/flowtable/dumps/0001flowtable_0.nft +++ b/tests/shell/testcases/flowtable/dumps/0001flowtable_0.nft @@ -5,6 +5,6 @@ table inet t { } chain c { - flow offload @f + flow add @f } } |