summaryrefslogtreecommitdiffstats
path: root/xlate-test.py
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2022-09-29 15:52:40 +0200
committerPhil Sutter <phil@nwl.cc>2022-10-01 13:39:35 +0200
commit33e35c1a32f5a1b131cb57ad28461ddc9889c0af (patch)
tree3662aa22b9be8eaa94deca63b8d5e57375b60d16 /xlate-test.py
parentf6c7affd8713ff92d6bfecadd31b6b75a8a9e172 (diff)
tests: iptables-test: Pass netns to execute_cmd()
The command to run might have to be prefixed. Once if the command is 'iptables' (or related) to define the variant, once if '-N' was given to run the command inside the netns. Doing both prefixing inside execute_cmd() avoids a potential conflict and thus simplifies things: The "external command" and "external iptables call" lines become identical in handling, there is no need for a separate prefix char anymore. As a side-effect, this commit also fixes for delete_rule() calls in error case ignoring the netns value. Signed-off-by: Phil Sutter <phil@nwl.cc>
Diffstat (limited to 'xlate-test.py')
0 files changed, 0 insertions, 0 deletions