netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* nft terse set listing issue: netlink: Error: Unknown set in lookup expression
@ 2021-10-27 22:03 Chris Arges
  2021-10-27 23:33 ` Pablo Neira Ayuso
  0 siblings, 1 reply; 2+ messages in thread
From: Chris Arges @ 2021-10-27 22:03 UTC (permalink / raw)
  To: netfilter-devel

Hi, I was wondering if it is possible to do terse listings of rulesets 
and ensure that set names are also visible.

For example if I have the following example:

#!/usr/sbin/nft -f
table inet filter {
     set example {
         type ipv4_addr
         flags interval
         auto-merge
         elements = { 10.10.10.10, 10.10.11.11 }
     }

     chain input {
         type filter hook prerouting priority filter; policy accept;
         ip saddr @example drop
     }
}

if I do the listing in v1.0.0, I will see the following:

$ sudo nft -t list ruleset
table inet filter {
     set example {
         type ipv4_addr
         flags interval
         auto-merge
     }

     chain input {
         type filter hook prerouting priority filter; policy accept;
         ip saddr @example drop
     }
}

In the latest master I see the following:

$ sudo nft -t list ruleset
table inet filter {
         chain input {
                 type filter hook prerouting priority filter; policy accept;
                 meta nfproto ipv4 drop
         }
}
netlink: Error: Unknown set 'example' in lookup expression

The old behavior is nice in that the set name is present without the 
contents of the set.

Thanks,

--chris


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-10-27 23:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-10-27 22:03 nft terse set listing issue: netlink: Error: Unknown set in lookup expression Chris Arges
2021-10-27 23:33 ` Pablo Neira Ayuso

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).