On Tue, Mar 14, 2023 at 05:05:37PM +0100, Pablo Neira Ayuso wrote: > Simplify: > > *reset rules* *chain* ['family'] 'table' ['chain]' > to > *reset rules* ['family'] 'table' 'chain' > > *reset rules* *table* ['family'] 'table' > to > *reset rules* ['family'] 'table' > > *reset counters* ['family'] *table* 'table' > to > *reset counters* ['family'] 'table' > > *reset quotas* ['family'] *table* 'table' > to > *reset quotas* ['family'] 'table' > > Previous syntax remains in place for backward compatibility. > > Signed-off-by: Pablo Neira Ayuso <pablo@xxxxxxxxxxxxx> > --- > doc/nft.txt | 8 ++++---- > src/parser_bison.y | 20 ++++++++++++++++++++ > 2 files changed, 24 insertions(+), 4 deletions(-) > > diff --git a/doc/nft.txt b/doc/nft.txt > index 0d60c7520d31..8624d5dd8f60 100644 > --- a/doc/nft.txt > +++ b/doc/nft.txt > @@ -491,8 +491,8 @@ RULES > {*delete* | *reset*} *rule* ['family'] 'table' 'chain' *handle* 'handle' > *destroy rule* ['family'] 'table' 'chain' *handle* 'handle' > *reset rules* ['family'] > -*reset rules* *table* ['family'] 'table' > -*reset rules* *chain* ['family'] 'table' ['chain'] > +*reset rules* ['family'] 'table' > +*reset chain* ['family'] 'table' 'chain' ~~~~~ This is a leftover. You may combine all three lines into a single: | *reset rules* ['family'] ['table' ['chain']] Cheers, Phil