summaryrefslogtreecommitdiffstats
path: root/tests/shell/testcases/sets
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2017-11-24 13:33:47 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2017-11-24 15:53:44 +0100
commit5bac6832d4a62bfbca66453474b91f6d6d6049f7 (patch)
tree15e8e6b56efe3215b0723f2271c09a629aa44901 /tests/shell/testcases/sets
parent24a912eea21f9d18909c53a865cf623839616281 (diff)
parser_bison: no need for 'name' token for meters
Rework grammar to skip the 'name' token after 'meter' for named meters. For consistency with sets and maps in terms of syntax. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tests/shell/testcases/sets')
-rwxr-xr-xtests/shell/testcases/sets/0022type_selective_flush_04
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/shell/testcases/sets/0022type_selective_flush_0 b/tests/shell/testcases/sets/0022type_selective_flush_0
index 87a4c7bc..659bf70c 100755
--- a/tests/shell/testcases/sets/0022type_selective_flush_0
+++ b/tests/shell/testcases/sets/0022type_selective_flush_0
@@ -16,7 +16,7 @@ add table t
add chain t c
add set t s {type ipv4_addr;}
add map t m {type ipv4_addr : inet_service;}
-add rule t c tcp dport 80 meter name f {ip saddr limit rate 10/second}
+add rule t c tcp dport 80 meter f {ip saddr limit rate 10/second}
" >$tmpfile
$NFT -f $tmpfile
@@ -26,7 +26,7 @@ $NFT -f $tmpfile
declare -a cmds=(
"flush set t m" "flush set t f"
"flush map t s" "flush map t f"
- "flush meter name t s" "flush meter name t m"
+ "flush meter t s" "flush meter t m"
)
for i in "${cmds[@]}"