Files
nftables-rs/resources/test/fixtures
Paul Holzinger 54ba9a30e9 fix: accept single or multiple set/map flags
Like for fib and synproxy flags with nft 1.1.4 a single flag value is
printed as string not array so the parser need to account for that.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2025-08-13 15:34:35 +02:00
..

These files are where either generated by a specific nftables version or by hand to test specific json parsing behavior.

synproxy test

The synproxy files should contain the json for this

table ip test {
	synproxy syn1 {
		mss 1100
		wscale 7
		timestamp
	}

	synproxy syn2 {
		mss 1000
		wscale 6
		timestamp sack-perm
	}

	chain chain1 {
		synproxy mss 1460 wscale 7 timestamp sack-perm
		synproxy mss 1500 wscale 5 timestamp
	}
}

set and map test

table ip test {
	set set1 {
		type inet_service
		flags interval
	}

	set set2 {
		type inet_service
		flags interval,timeout
		timeout 10s
	}

	map map1 {
		type inet_service : inet_service
		flags interval
	}

	map map2 {
		type inet_service : inet_service
		flags interval,timeout
		timeout 20s
	}
}