summaryrefslogtreecommitdiffstats
path: root/tests/shell/testcases/maps/0012map_0
blob: dd93c482f4413578bae592083e8a33bc3d8f38ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash

set -e

EXPECTED="define interfaces = { eth0, eth1 }

table ip x {
	map z {
		type ifname : verdict
		elements = { \$interfaces : drop, lo : accept }
	}
	chain y {
		iifname vmap { lo : accept, \$interfaces : drop }
	}
}"

$NFT -f - <<< "$EXPECTED"