package/podman: add option to use passt as network backend

passt/pasta is the officially supported network backend, with slirp4netns
only considered a legacy solution. However, some people have experienced
corner cases when using passt/pasta (as it still is a young stack), so we
do not want to do a blanket replace of slirp4netns just yet. Still, we
make passt/pasta the default option.

As a consequence, the existing runtime tests will now test passt/pasta,
so we introduce two new tests for slirp4netns as a network backend.

Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
Signed-off-by: Julien Olivain <ju.o@free.fr>
This commit is contained in:
Yann E. MORIN
2025-03-15 20:57:11 +01:00
committed by Julien Olivain
parent d038cc47cd
commit 54f79d804f
4 changed files with 51 additions and 11 deletions

View File

@@ -239,3 +239,22 @@ class TestPodmanTini(PodmanBase):
def test_run(self):
self.do_test()
class TestPodmanSlirpIptables(PodmanBase):
config = PodmanBase.config + """
BR2_PACKAGE_PODMAN_NET_SLIRP4NETNS=y
"""
def test_run(self):
self.do_test()
class TestPodmanSlirpNftables(PodmanBase):
config = PodmanBase.config + """
BR2_PACKAGE_NFTABLES=y
BR2_PACKAGE_PODMAN_NET_SLIRP4NETNS=y
"""
def test_run(self):
self.do_test()