summaryrefslogtreecommitdiffstats
path: root/tests/shell/testcases/flowtable/0012flowtable_variable_0
blob: 8e334224ac66f2039b02f9f38a1f8f724954c29c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/bash

set -e

ip link add name dummy1 type dummy

EXPECTED="define if_main = { lo, dummy1 }

table filter1 {
	flowtable Main_ft1 {
		hook ingress priority filter
		counter
		devices = \$if_main
	}
}"

$NFT -f - <<< $EXPECTED

EXPECTED="define if_main = \"lo\"

table filter2 {
	flowtable Main_ft2 {
		hook ingress priority filter
		counter
		devices = { \$if_main, dummy1 }
	}
}"

$NFT -f - <<< $EXPECTED