]> git.ipfire.org Git - thirdparty/nftables.git/commitdiff
tests: monitor: enclose device names in quotes master
authorPablo Neira Ayuso <pablo@netfilter.org>
Thu, 10 Jul 2025 00:53:50 +0000 (02:53 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 10 Jul 2025 00:53:57 +0000 (02:53 +0200)
Update test to enclose flowtable device names in quotes, otherwise,
it reports a spurious issue:

@@ -1,2 +1,3 @@
 add table ip t
-add flowtable ip t ft { hook ingress priority 0; devices = { lo }; }
+add flowtable ip t ft { hook ingress priority 0; devices = { "lo" }; }

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
tests/monitor/testcases/flowtable-simple.t

index b373cca2e0d61515a650436fb4c7215900b1dae0..11254c51fcab7b81f6e2ad35c693b72a5c7ef6ac 100644 (file)
@@ -1,6 +1,6 @@
 # setup first
 I add table ip t
-I add flowtable ip t ft { hook ingress priority 0; devices = { lo }; }
+I add flowtable ip t ft { hook ingress priority 0; devices = { "lo" }; }
 O -
 J {"add": {"table": {"family": "ip", "name": "t", "handle": 0}}}
 J {"add": {"flowtable": {"family": "ip", "name": "ft", "table": "t", "handle": 0, "hook": "ingress", "prio": 0, "dev": "lo"}}}