path: root/tests/shell
diff options
authorPablo Neira Ayuso <>2016-08-24 15:58:57 +0200
committerPablo Neira Ayuso <>2016-08-24 16:09:30 +0200
commitf11cf6d42f873513f0bb9b80edb6bfad2dda55eb (patch)
tree087de63610f4199fb6322b1c5c8379dea9632e00 /tests/shell
parentf6d06a649062464a609125aee1cb5b80693d100e (diff)
src: add create set command
Add support for the 'create' command, we already support this in other existing objects, so support this for sets too, eg. # nft add set x y { type ipv4_addr\; } # nft create set x y { type ipv4_addr\; } <cmdline>:1:1-35: Error: Could not process rule: File exists create set x y { type ipv4_addr; } ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ # nft add set x y { type ipv4_addr\; } # This command sets the NLM_F_EXCL netlink flag, so if the object already exists, nf_tables returns -EEXIST. This is changing the existing behaviour of 'nft add set' which was setting this flag, this is inconsistent with regards to the way other objects behave. Signed-off-by: Pablo Neira Ayuso <>
Diffstat (limited to 'tests/shell')
0 files changed, 0 insertions, 0 deletions