namib-project / nftables-rs

Safe abstraction for nftables JSON API (libnftables-json).
https://crates.io/crates/nftables
Apache License 2.0
23 stars 13 forks source link

Run nft tests in netns #18

Closed jwhb closed 5 months ago

jwhb commented 5 months ago

Tests that use nft command alter the system's nftables. By creating a fresh net namespace for each run, tests will not break system networking.