diff options
author | Florian Westphal <fw@strlen.de> | 2019-08-16 14:22:01 +0200 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2019-12-17 23:10:46 +0100 |
commit | e7069f617fb70dccb52f3de1beab7851a08eade9 (patch) | |
tree | 3b70fe154221db752b43ac83311c85072e7eff85 /tests/shell/testcases/sets/dumps/typeof_sets_0.nft | |
parent | 6a0fb05cc335350c92738a88d7434514ab4548cb (diff) |
tests: add typeof test cases
Add sets using unspecific string/integer types, one with
osf name, other with vlan id. Neither type can be used directly,
as they lack the type size information.
Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'tests/shell/testcases/sets/dumps/typeof_sets_0.nft')
-rw-r--r-- | tests/shell/testcases/sets/dumps/typeof_sets_0.nft | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/shell/testcases/sets/dumps/typeof_sets_0.nft b/tests/shell/testcases/sets/dumps/typeof_sets_0.nft new file mode 100644 index 00000000..44e11202 --- /dev/null +++ b/tests/shell/testcases/sets/dumps/typeof_sets_0.nft @@ -0,0 +1,19 @@ +table inet t { + set s1 { + typeof osf name + elements = { "Linux" } + } + + set s2 { + typeof vlan id + elements = { 2, 3, 103 } + } + + chain c1 { + osf name @s1 accept + } + + chain c2 { + vlan id @s2 accept + } +} |