tests/shell/testcases/flowtable/0002create_flowtable_0
raw| 1 | #!/bin/bash |
| 2 | |
| 3 | set -e |
| 4 | $NFT add table t |
| 5 | $NFT add flowtable t f { hook ingress priority 10 \; devices = { lo }\; } |
| 6 | if $NFT create flowtable t f { hook ingress priority 10 \; devices = { lo }\; } 2>/dev/null ; then |
| 7 | echo "E: flowtable creation not failing on existing set" >&2 |
| 8 | exit 1 |
| 9 | fi |
| 10 | $NFT add flowtable t f { hook ingress priority 10 \; devices = { lo }\; } |
| 11 | |
| 12 | exit 0 |